wifi: mac80211: Fix UAF in ieee80211_scan_rx()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6ea0a69ca21bbddab5b3979c2190013b0263e749 · < 5d20c6f932f2758078d0454729129c894fe353e7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: Fix UAF in ieee80211_scan_rx()
ieee80211_scan_rx() tries to access scan_req->flags after a null check, but a UAF is observed when the scan is completed and __ieee80211_scan_completed() executes, which then calls cfg80211_scan_done() leading to the freeing of scan_req.
Since scan_req is rcu_dereference()'d, prevent the racing in __ieee80211_scan_completed() by ensuring that from mac80211's POV it is no longer accessed from an RCU read critical section before we call cfg80211_scan_done().
From the CVE record · Linux
A race in the Linux kernel's mac80211 scan handling can free a scan request while ieee80211_scan_rx() is still accessing it, causing a use-after-free. The input does not specify what an attacker could achieve or whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel should check their affected versions; no version range is provided.