KernelScan.io

HIGH Introduced in 2.6.32

cfg80211 WiphyNetns UAF

CVE-2026-98330

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 AI6.7MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: get the wiphy out of a dying network namespace When a network namespace is destroyed, cfg80211_pernet_exit() moves any wiphy back to the initial namespace, and just warns if that fails. But moving an interface can fail (due to allocation failures), and then the wiphy is left behind with a garbage netns pointer: Kernel mode fault at addr 0x30 genlmsg_multicast_netns.constprop.0+0x46/0xcf [cfg80211] nl80211_notify_wiphy+0xcd/0xe8 [cfg80211] wiphy_unregister+0x169/0x3fc [cfg80211] Note that commit debac3a20dec ("net: Remove conflicting altnames for dying netns in __dev_change_net_namespace().") fixed another path that could reach it without allocation failures. Remove interfaces that cannot be moved instead of failing the switch, so that the wiphy always ends up in the initial namespace. In this case the netdev core will unregister the interfaces anyway.

02

Engine v0.7.0

Risk summary

A local attacker who can trigger destruction of a network namespace containing a wireless PHY device can cause a use-after-free in the kernel. The stale namespace pointer is later dereferenced during wiphy cleanup, leading to a kernel crash and potential memory corruption. Systems with WiFi hardware and unprivileged network namespace creation are most at risk.

Affectednet/wireless/core.c (cfg80211 wireless subsystem)

Vulnerability analysis

When a network namespace that contains a wireless PHY is destroyed, the cleanup routine tries to move the wiphy back to the initial namespace. If that move fails — for instance because a memory allocation fails while relocating a wireless interface — the wiphy is left behind with a dangling pointer to the now-freed namespace. A later operation on that wiphy dereferences the freed namespace memory, causing a kernel fault. The fix changes the teardown path so that any interface that cannot be relocated is simply removed rather than causing the whole migration to fail, guaranteeing the wiphy always lands in the initial namespace even under allocation pressure. This is reachable from a local process that can destroy a network namespace holding a wireless device; setting up that scenario requires CAP_NET_ADMIN to place the wiphy in the namespace, but the namespace destruction itself can be triggered by any process running inside it, and WiFi hardware with a supporting driver must be present.

03

BranchIntroducedFixed inPatch commit
6.182.6.326.18.54caa02072b298
7.22.6.327.2.8b949b2720688
mainline2.6.327.34635b1a1c1d6

04

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

CIP treeState
cip/6.12Affected — no CIP fix yet (latest 6.12.118-cip136)
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 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)