Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98196 Overview
CVE-2026-98196 is a use-after-free vulnerability in the Linux kernel's brcmsmac Broadcom wireless driver. The flaw resides in the brcms_free_timer() function, which frees timer structures while an underlying delayed work callback may still reference them. The function invokes brcms_del_timer(), which calls the non-synchronous cancel_delayed_work() to cancel the timer's delayed work. If _brcms_timer is already executing, cancel_delayed_work() returns false without waiting, allowing kfree(t) to proceed while the callback accesses the freed object through container_of().
Critical Impact
Kernel memory corruption through use-after-free in Broadcom softmac Wi-Fi driver can lead to crashes or local privilege escalation on systems using affected hardware.
Affected Products
- Linux kernel versions containing the brcmsmac wireless driver prior to the fix
- Systems using Broadcom softmac Wi-Fi chipsets supported by brcmsmac
- Multiple stable kernel branches referenced by the eight backport patches
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-98196 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98196
Vulnerability Analysis
The vulnerability is a classic use-after-free [CWE-416] race condition between a timer teardown path and its asynchronous worker callback. The brcmsmac driver manages timers wrapped around kernel delayed_work structures. When the driver tears down a timer object through brcms_free_timer(), it attempts cancellation via brcms_del_timer(), which internally calls cancel_delayed_work(). This cancellation primitive is non-blocking and only reports whether a pending work item was removed from the queue.
If _brcms_timer has already begun executing on another CPU, the cancellation returns without synchronizing. Control returns to brcms_free_timer(), which calls kfree(t) on the timer wrapper. The still-running callback resolves its enclosing timer object through the container_of() macro and dereferences freed memory. This produces undefined behavior, including memory corruption, kernel pointer leaks, or crashes depending on allocator state.
Root Cause
The root cause is the use of a non-synchronous cancellation function during object destruction. cancel_delayed_work() cannot guarantee that an in-flight callback has completed before the caller continues. The fix adds an explicit cancel_delayed_work_sync() call after brcms_del_timer() to ensure any executing callback finishes before the timer memory is released.
Attack Vector
Triggering the race requires local interaction with the brcmsmac driver, typically through operations that cause rapid timer teardown while the driver is active. Exploitation requires a Broadcom softmac Wi-Fi device and the ability to influence driver state transitions. Reliable exploitation would require precise timing to win the race between callback execution and the free operation.
No verified proof-of-concept code is available. See the upstream kernel patches referenced below for the exact code change.
Detection Methods for CVE-2026-98196
Indicators of Compromise
- Kernel oops or panic messages referencing _brcms_timer, brcms_free_timer, or brcms_del_timer in dmesg output
- KASAN (Kernel Address Sanitizer) use-after-free reports on systems with sanitizers enabled
- Unexpected Wi-Fi interface resets or driver reload events on hosts using Broadcom softmac hardware
Detection Strategies
- Monitor kernel ring buffer and /var/log/kern.log for stack traces involving brcmsmac symbols
- Verify installed kernel package versions against distribution security advisories for the eight referenced upstream commits
- Enable KASAN in test environments to surface the race during fuzzing of Wi-Fi driver state transitions
Monitoring Recommendations
- Collect kernel crash dumps centrally and alert on signatures involving timer or workqueue subsystems
- Track kernel version drift across the Linux fleet to identify hosts still running unpatched builds
- Correlate wireless interface instability with kernel log anomalies on endpoints with Broadcom hardware
How to Mitigate CVE-2026-98196
Immediate Actions Required
- Apply the vendor-supplied kernel update containing the cancel_delayed_work_sync() fix in brcms_free_timer()
- Reboot affected systems after installing the updated kernel to activate the patched driver
- Inventory endpoints using the brcmsmac module via lsmod | grep brcmsmac to scope remediation
Patch Information
The upstream fix adds an explicit cancel_delayed_work_sync() after brcms_del_timer() so any in-flight _brcms_timer callback completes before the timer structure is freed. The change has been backported across multiple stable branches. Reference commits:
- Kernel Patch 050d2486
- Kernel Patch 10eeb0b2
- Kernel Patch 1edb3ddd
- Kernel Patch 1eeca1d5
- Kernel Patch 2a4841ff
- Kernel Patch 74acccc9
- Kernel Patch 777cb6bb
- Kernel Patch 856dabd5
Workarounds
- Blacklist the brcmsmac module on systems that do not require Broadcom softmac Wi-Fi support until patching is complete
- Prefer wired networking on affected hosts where feasible to avoid driver code paths that schedule the timer
- Restrict local access on multi-user systems to reduce the risk of a local attacker triggering the race
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

