wifi: cfg80211: cancel pmsr_free_wk in cfg80211_pmsr_wdev_down
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 · < 6dccbc9f3e1d38565dff7730d2b7d1e8b16c9b09| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: cancel pmsr_free_wk in cfg80211_pmsr_wdev_down
When the nl80211 socket that originated a PMSR request is closed, cfg80211_release_pmsr() sets the request's nl_portid to zero and schedules pmsr_free_wk to process the abort asynchronously. If the interface is concurrently torn down before that work runs, cfg80211_pmsr_wdev_down() calls cfg80211_pmsr_process_abort() directly. However, the already- scheduled pmsr_free_wk work item remains pending and may run after the interface has been removed from the driver. This could cause the driver's abort_pmsr callback to operate on a torn-down interface, leading to undefined behavior and potential crashes.
Cancel pmsr_free_wk synchronously in cfg80211_pmsr_wdev_down() before calling cfg80211_pmsr_process_abort(). This ensures any pending or in-progress work is drained before interface teardown proceeds, preventing the work from invoking the driver abort callback after the interface is gone.
From the CVE record · Linux
A race in the Linux kernel’s cfg80211 PMSR handling can leave abort work pending after a Wi-Fi interface is torn down. If the nl80211 socket that originated a PMSR request closes while the interface is being torn down, the driver’s abort callback may run on the removed interface, potentially causing a crash. Authentication requirements are not specified.
Operators running the Linux kernel should check their versions; affected versions are not specified.