CVE-2026-31548: wifi: cfg80211: cancel pmsr_free_wk in cfg80211_pmsr_wdev_down
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-31548 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.0 with commit 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 and fixed in 6.1.167 with commit 28d3551f8d8cb3aec7497894d94150fe84d20e5e Issue introduced in 5.0 with commit 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 and fixed in 6.6.130 with commit 37e776e2e0a523731e2470dce6d563f0e8632a40 Issue introduced in 5.0 with commit 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 and fixed in 6.12.78 with commit d32c07ef1880fe20cf4ab223dbfedc9c0b2816aa Issue introduced in 5.0 with commit 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 and fixed in 6.18.20 with commit a1b7a843f12a0c3e9d3a2ca607ce451916ef42cf Issue introduced in 5.0 with commit 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 and fixed in 6.19.10 with commit 72b7ea786b8e570ae11149e9089859a4a8634a13 Issue introduced in 5.0 with commit 9bb7e0f24e7e7d00daa1219b14539e2e602649b2 and fixed in 7.0 with commit 6dccbc9f3e1d38565dff7730d2b7d1e8b16c9b09
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-31548
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/wireless/pmsr.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/28d3551f8d8cb3aec7497894d94150fe84d20e5e https://git.kernel.org/stable/c/37e776e2e0a523731e2470dce6d563f0e8632a40 https://git.kernel.org/stable/c/d32c07ef1880fe20cf4ab223dbfedc9c0b2816aa https://git.kernel.org/stable/c/a1b7a843f12a0c3e9d3a2ca607ce451916ef42cf https://git.kernel.org/stable/c/72b7ea786b8e570ae11149e9089859a4a8634a13 https://git.kernel.org/stable/c/6dccbc9f3e1d38565dff7730d2b7d1e8b16c9b09