CVE-2026-98424: wifi: cfg80211: undo netns switch if renaming the wiphy fails
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: undo netns switch if renaming the wiphy fails
Once all the interfaces have been moved, cfg80211_switch_netns() moves the wiphy itself by setting its network namespace and then renaming it, which makes sysfs move it. The rename can fail (but only on allocation failures), leaving things mixed up and hitting the warning there.
Ignoring it isn't great, undo the move and let the change fail in this case. If undo fails then WARN, then things would again be stuck in two different network namespaces.
The Linux kernel CVE team has assigned CVE-2026-98424 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.32 with commit 463d018323851a608eef52a9427b0585005c647f and fixed in 6.18.54 with commit 96bef5667b0c4aecb1b850d2343f69b9d684abb9 Issue introduced in 2.6.32 with commit 463d018323851a608eef52a9427b0585005c647f and fixed in 7.2.8 with commit 739b7bf3942da4cde8eedb143d01a16ed865d1d7 Issue introduced in 2.6.32 with commit 463d018323851a608eef52a9427b0585005c647f and fixed in 7.3-rc4 with commit a41bd1938a9bfe226d444172a7e20e4bd5097960
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-98424
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/core.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/96bef5667b0c4aecb1b850d2343f69b9d684abb9 https://git.kernel.org/stable/c/739b7bf3942da4cde8eedb143d01a16ed865d1d7 https://git.kernel.org/stable/c/a41bd1938a9bfe226d444172a7e20e4bd5097960