wifi: cfg80211: stop PMSR before P2P and NAN teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 · < 6c5fc504d0d6934132637aa3db4b9b58148eaa78| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: stop PMSR before P2P and NAN teardown
PMSR request teardown must abort active measurements while the wireless_dev is still present in the driver. cfg80211_leave_locked() and cfg80211_stop_pd() already do this before invoking the driver's stop callback, but cfg80211_stop_p2p_device() and cfg80211_stop_nan() do not.
Those helpers are also called directly by nl80211, rfkill shutdown, and wireless_dev unregister paths. If one of these paths stops a P2P device or NAN interface with a pending request, it removes the mac80211 subinterface from the driver first. Subsequent request cleanup cannot reach the lower driver's abort callback, but cfg80211 frees the request regardless. Driver state can then retain a stale request and use it when it later reports a result.
Call cfg80211_pmsr_wdev_down() before stopping the P2P device or NAN interface. This keeps lower-driver request state and cfg80211 request ownership in sync for all of the helpers' callers.
From the CVE record · Linux
The Linux kernel’s cfg80211 code can free a pending PMSR request after stopping a P2P device or NAN interface without first aborting the request in the driver. The driver may later use the stale request when reporting a result. This requires a pending measurement during teardown; the input does not specify an attack path or authentication requirements.
Engineers running Linux kernels with the affected cfg80211 code should check their kernel versions; affected versions are not specified.