Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 before 9374943fc5a45915e4ea8b597b6a17d3b571bcbf; affected 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 before dc1e41df6e683ff9522bf40dd3125ed7ccd8a4e4; affected 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 before 7a22cbc6c6bdd3c3811b4ce13875685c520f94de; affected 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 before db3439ad11ac5e52decdefe784c98b21c3757848; affected 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 before 6c5fc504d0d6934132637aa3db4b9b58148eaa78 |
| Linux / Linux | affected 5.0; unaffected 0 before 5.0; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/9374943fc5a45915e4ea8b597b6a17d3b571bcbf
- https://git.kernel.org/stable/c/dc1e41df6e683ff9522bf40dd3125ed7ccd8a4e4
- https://git.kernel.org/stable/c/7a22cbc6c6bdd3c3811b4ce13875685c520f94de
- https://git.kernel.org/stable/c/db3439ad11ac5e52decdefe784c98b21c3757848
- https://git.kernel.org/stable/c/6c5fc504d0d6934132637aa3db4b9b58148eaa78