KernelScan.io

HIGH Introduced in 2.6.32

mac80211 VifList Panic

CVE-2026-98331

CVSS 7.0 / 10.0 NVD

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.0HIGH

01

In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: unlist vifs when their netdev is unregistered mac80211 only removes vifs from the local->interfaces list when an interface is removed via ieee80211_if_remove(), before it unregisters the netdev. However, it's possible for a netdev to be unregistered without going through that: When the netns that holds the wiphy is destroyed, the wiphy is supposed to move to the init_ns, but that can run into allocation failures. Then, mac80211 has an interface listed that doesn't exist, and will eventually hit BUG: failure at net/wireless/core.h:141/wiphy_to_rdev()! ... _cfg80211_unregister_wdev+0x24/0x36a [cfg80211] cfg80211_unregister_wdev+0x15/0x1d [cfg80211] ieee80211_remove_interfaces+0x1ff/0x257 [mac80211] ieee80211_unregister_hw+0x73/0x1d1 [mac80211] mac80211_hwsim_del_radio+0x114/0x166 [mac80211_hwsim] Remove the interface from the list in ->ndo_uninit if it's still around to avoid this.

02

Engine v0.7.0

Risk summary

A local attacker who can trigger network namespace destruction while a WiFi device resides in that namespace can cause memory corruption or a kernel panic. The bug requires the WiFi mac80211 subsystem to be active and depends on an allocation failure during namespace cleanup, making reliable exploitation difficult. The stale list entry provides a use-after-free primitive that can potentially leak information or corrupt kernel memory.

Affectednet/mac80211/iface.c (mac80211)

Vulnerability analysis

When a network namespace containing a WiFi device is destroyed, the kernel may fail to move that device back to the initial namespace because of a memory allocation failure. The network interface is then torn down without being removed from the WiFi subsystem's internal list, leaving a stale entry. Later, when the WiFi hardware is unregistered, the subsystem walks that list and accesses the invalid entry, which can corrupt memory or cause a kernel panic. The fix ensures the interface is always removed from the internal list during network device teardown, regardless of which code path initiated the unregister. This can be reached by any local process whose network namespace destruction coincides with the failed reparenting, provided the WiFi subsystem is active.

03

BranchIntroducedFixed inPatch commit
6.12.6.326.1.189a22c02863439
6.122.6.326.12.112b735ad1a9aca
6.182.6.326.18.54d45bf731ec70
6.62.6.326.6.15820a56e96a6f7
7.22.6.327.2.8821bab0456df
mainline2.6.327.3eee2efd82867
cip/6.12.6.326.1.189-cip61a22c02863439
cip/6.1-rt2.6.326.1.189-cip61-rt32a22c02863439
cip/6.122.6.326.12.112-cip33b735ad1a9aca

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip137-rt51)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip116)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)