CVE-2026-98423: wifi: mac80211_hwsim: don't hand frames to mac80211 while stopping
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211_hwsim: don't hand frames to mac80211 while stopping
The code checks ->started for frames coming from wmediumd, but the radio can be stopped after the check and before frame delivery, causing mac80211 to hit the WARN_ON(!local->started).
Expand the mutex for this case and synchronise against it when the radio is stopped to avoid being able to hit the warning with hwsim.
Drop the error print that would've complicated the error path, it only triggers for allocation failures (already noisy) and malformed frames anyway.
The Linux kernel CVE team has assigned CVE-2026-98423 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.1 with commit 7882513bacb176ab4aacceefdd035ca9479da4fb and fixed in 6.1.189 with commit 5ce9b2bc9e73213e316a8c72400256a76bf41814 Issue introduced in 3.1 with commit 7882513bacb176ab4aacceefdd035ca9479da4fb and fixed in 6.6.158 with commit c4e4fe330294e3936e0f4e15d6996468f8a45fb2 Issue introduced in 3.1 with commit 7882513bacb176ab4aacceefdd035ca9479da4fb and fixed in 6.12.112 with commit 2f59be7585dc81baa6f36b0035dd6848ea43d318 Issue introduced in 3.1 with commit 7882513bacb176ab4aacceefdd035ca9479da4fb and fixed in 6.18.54 with commit 5c79ef616aa16af582fb2cb93b0f750975a0004f Issue introduced in 3.1 with commit 7882513bacb176ab4aacceefdd035ca9479da4fb and fixed in 7.2.8 with commit d7fa45d8123a7f794b93fc22dbcf19f38dc4d8cb Issue introduced in 3.1 with commit 7882513bacb176ab4aacceefdd035ca9479da4fb and fixed in 7.3-rc4 with commit 87840d4a3a21b1c19b867a80e16ba69dff284de2
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-98423
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:
drivers/net/wireless/virtual/mac80211_hwsim_main.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/5ce9b2bc9e73213e316a8c72400256a76bf41814 https://git.kernel.org/stable/c/c4e4fe330294e3936e0f4e15d6996468f8a45fb2 https://git.kernel.org/stable/c/2f59be7585dc81baa6f36b0035dd6848ea43d318 https://git.kernel.org/stable/c/5c79ef616aa16af582fb2cb93b0f750975a0004f https://git.kernel.org/stable/c/d7fa45d8123a7f794b93fc22dbcf19f38dc4d8cb https://git.kernel.org/stable/c/87840d4a3a21b1c19b867a80e16ba69dff284de2