HIGH Introduced in 2.6.38
mac80211 LedTrigger UAF
CVE-2026-98333
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: reset the LED state when ifup fails When the first interface comes up, the radio LED is turned on. This can start the TPT trigger timer, which continues running. But if bringing up the interface fails then the timer keeps running and won't be stopped by anything, eventually it can be freed: ODEBUG: free active (active state 0) object: ffff888127e12130 object type: timer_list hint: tpt_trig_timer+0x0/0x300 net/mac80211/led.c:145 WARNING: CPU: 0 PID: 5923 at lib/debugobjects.c:612 debug_print_object+0x1a2/0x2b0 debug_check_no_obj_freed+0x4b7/0x600 lib/debugobjects.c:1129 kfree+0x436/0x670 mm/slub.c:6818 ieee80211_led_exit+0x162/0x1c0 net/mac80211/led.c:210 ieee80211_unregister_hw+0x27e/0x3a0 net/mac80211/main.c:1706 rt2x00lib_remove_dev+0x55b/0x670 Undo the LED state in the error path.
02KernelScan AI Analysis
Risk summary
A local attacker with the ability to bring up a WiFi interface can trigger a use-after-free in the mac80211 LED subsystem. If the interface bring-up fails, a kernel timer remains active and is later freed while still running, potentially leading to kernel memory corruption or a crash. Exploitation requires WiFi hardware or a virtual WiFi driver to be available and CAP_NET_ADMIN privileges, which may be obtainable in a user namespace.
Vulnerability analysis
When a WiFi interface is brought up for the first time, the radio LED is enabled, which starts a throughput LED trigger timer. If the interface bring-up subsequently fails, the error path stops the radio but does not undo the LED state, leaving the timer running. Later, when the WiFi hardware is unregistered, the memory containing that timer is freed while the timer is still active, resulting in a use-after-free when the timer callback fires on freed memory. The fix adds calls to disable the radio LED and clear the throughput LED trigger in the error path, ensuring the timer is stopped before the device is torn down. This is reachable locally by any process that can bring up a WiFi interface, which requires CAP_NET_ADMIN obtainable in a user namespace, and requires WiFi hardware or a virtual WiFi driver such as mac80211_hwsim to be present.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 2.6.38 | 7.2.8 | de6f9561db57 |
| mainline | 2.6.38 | 7.3 | 78183e833195 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Affected — no CIP fix yet (latest 6.12.118-cip136) |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip116) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |