CVE-2026-98346: wifi: cfg80211: don't get the radio mask for netdev-less wdevs
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: don't get the radio mask for netdev-less wdevs
cfg80211_calculate_bi_data() calls rdev_get_radio_mask() with wdev->netdev, which can be NULL and then crashes in mac80211.
To avoid that, invert the order of checks since wdev->netdev is always valid for beaconing interfaces.
The Linux kernel CVE team has assigned CVE-2026-98346 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit abb4cfe3661aa05426916b21164f88ca5a405a3a and fixed in 6.12.112 with commit 5b313159c970e945ee125ca87fad0d96ed913e55 Issue introduced in 6.11 with commit abb4cfe3661aa05426916b21164f88ca5a405a3a and fixed in 6.18.54 with commit 693d777846d525b8b218bad97a1befa5d9bd4334 Issue introduced in 6.11 with commit abb4cfe3661aa05426916b21164f88ca5a405a3a and fixed in 7.2.8 with commit 7166da84a7fe3553f9065782fd80299a37b150e5 Issue introduced in 6.11 with commit abb4cfe3661aa05426916b21164f88ca5a405a3a and fixed in 7.3-rc4 with commit a7783e585360ee05dfe21d3173dbbe985c94f29e
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-98346
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/util.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/5b313159c970e945ee125ca87fad0d96ed913e55 https://git.kernel.org/stable/c/693d777846d525b8b218bad97a1befa5d9bd4334 https://git.kernel.org/stable/c/7166da84a7fe3553f9065782fd80299a37b150e5 https://git.kernel.org/stable/c/a7783e585360ee05dfe21d3173dbbe985c94f29e