KernelScan.io

HIGH Introduced in 3.2

brcmsmac Timer UAF

CVE-2026-98196

CVSS 7.0 / 10.0 KernelScan AI

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

01

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.

02

Engine v0.7.0

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.

Affecteddrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c (brcmsmac)

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.

03

BranchIntroducedFixed inPatch commit
5.103.25.10.27110eeb0b29fd7
5.153.25.15.22274acccc92885
6.13.26.1.189050d2486e8ed
6.123.26.12.1122a4841ff0b74
6.183.26.18.541edb3ddd261e
6.63.26.6.158856dabd5f261
7.23.27.2.8777cb6bba59e
mainline3.27.31eeca1d5e092
cip/4.193.24.19.325-cip137c97774927b59
cip/4.19-rt3.24.19.325-cip137-rt51c97774927b59
cip/4.43.24.4.302-cip1161f1cce3fffc5
cip/5.103.25.10.271-cip7810eeb0b29fd7
cip/5.10-rt3.25.10.272-cip79-rt3510eeb0b29fd7
cip/6.13.26.1.189-cip61050d2486e8ed
cip/6.1-rt3.26.1.189-cip61-rt32050d2486e8ed
cip/6.123.26.12.112-cip332a4841ff0b74

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.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Fixed in 4.19.325-cip137
cip/4.19-rtFixed in 4.19.325-cip137-rt51
cip/4.4Fixed in 4.4.302-cip116
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)