HIGH Introduced in 3.2
brcmsmac Timer UAF
CVE-2026-98196
CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: wifi: brcmsmac: fix UAF in brcms_free_timer() brcms_free_timer() calls brcms_del_timer() which uses the non-synchronous cancel_delayed_work() to cancel the timer's underlying delayed work. If the work callback (_brcms_timer) is already running, cancel_delayed_work() returns false without waiting, and brcms_free_timer() proceeds to kfree(t) while the callback still accesses t through container_of(). Add an explicit cancel_delayed_work_sync() after brcms_del_timer() to guarantee that any in-flight callback has completed before the timer structure is freed.
02KernelScan AI Analysis
Risk summary
A local user with access to a system running the brcmsmac Broadcom WiFi driver can trigger a use-after-free during timer cleanup by racing the timer callback against interface teardown. The freed timer structure remains accessed by the in-flight callback, enabling heap corruption that can lead to kernel code execution or a crash. Exploitation requires specific Broadcom WiFi hardware and the ability to time the race window.
Vulnerability analysis
During cleanup of a WiFi timer in the brcmsmac driver, the timer's underlying delayed work is cancelled with a non-synchronous call that returns immediately without waiting for an already-running callback to finish. The timer structure is then freed while the callback still dereferences it, producing a use-after-free on the heap object. The fix adds a synchronous cancellation call after the existing non-synchronous one, guaranteeing that any in-flight callback has fully completed before the timer structure is freed. The race is reachable from a local context where the brcmsmac driver is loaded on systems with compatible Broadcom WiFi hardware; a local user who can cause the WiFi interface to be torn down while timer callbacks are active can trigger the condition.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 3.2 | 5.10.271 | 10eeb0b29fd7 |
| 5.15 | 3.2 | 5.15.222 | 74acccc92885 |
| 6.1 | 3.2 | 6.1.189 | 050d2486e8ed |
| 6.12 | 3.2 | 6.12.112 | 2a4841ff0b74 |
| 6.18 | 3.2 | 6.18.54 | 1edb3ddd261e |
| 6.6 | 3.2 | 6.6.158 | 856dabd5f261 |
| 7.2 | 3.2 | 7.2.8 | 777cb6bba59e |
| mainline | 3.2 | 7.3 | 1eeca1d5e092 |
| cip/5.10 | 3.2 | 5.10.271-cip78 | 10eeb0b29fd7 |
| cip/5.10-rt | 3.2 | 5.10.272-cip79-rt35 | 10eeb0b29fd7 |
| cip/6.1 | 3.2 | 6.1.189-cip61 | 050d2486e8ed |
| cip/6.1-rt | 3.2 | 6.1.189-cip61-rt32 | 050d2486e8ed |
| cip/6.12 | 3.2 | 6.12.112-cip33 | 2a4841ff0b74 |
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 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |