Linux
wifi: cfg80211: don't free driver-owned scan requests
In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: don't free driver-owned scan requests When an interface goes down while a scan is running, cfg80211 completes the scan towards userspace and frees the scan request. However, the driver can be convinced that it owns the request, since the cancellation is (intended to be) asynchronous. The WARN_ON() in the netdev notifier was meant to catch this, but it's not actually avoidable, so it triggers and we get a UAF in scan_done(). There doesn't seem to be a great way around it, so just track that the driver is still convinced it owns the request, and then just free it on completion if it was already cancelled. Also remove the warnings since they can trigger in the intended architecture.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4a58e7c38443154fce1b47910e1a9184f65c5d72, < e8c75736cfd0c6c87562cda2312e3fe5e2227955
- >= 4a58e7c38443154fce1b47910e1a9184f65c5d72, < cf6da29d17994865f73ca70976495ea856909c63
- >= 4a58e7c38443154fce1b47910e1a9184f65c5d72, < dab68a74e90b8e07f08ed9deaa5884857a3cfe89
Fixed in e8c75736cfd0c6c87562cda2312e3fe5e2227955, cf6da29d17994865f73ca70976495ea856909c63, dab68a74e90b8e07f08ed9deaa5884857a3cfe89
- 3.14
Fixed in 0, 6.18.54, 7.2.8, 7.3
Mitigation
Upgrade Linux to e8c75736cfd0c6c87562cda2312e3fe5e2227955 or cf6da29d17994865f73ca70976495ea856909c63 or dab68a74e90b8e07f08ed9deaa5884857a3cfe89 or later.
Upgrade Linux to 0 or 6.18.54 or 7.2.8 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.