Skip to main content
Vulnerability Database/CVE-2026-98707

CVE-2026-98707: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98707 is a use-after-free vulnerability in the Linux kernel's mac80211 WiFi subsystem that can cause timer callbacks to run against freed memory. This article covers technical details, impact, and mitigation.

Published:

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-98707 Overview

CVE-2026-98707 is a use-after-free vulnerability in the Linux kernel's mac80211 wireless subsystem. The flaw occurs when tearing down an RX Block Acknowledgement (BA) session leaves the session timer queued on a freed tid_rx structure. Subsequent timer-wheel processing and the timer callback then operate on freed memory. An RX Block Ack Request (BAR) handler can dereference tid_rx under RCU before teardown unpublishes it, then rearm the timer after timer_delete_sync() returns and before the RCU callback frees the structure. The upstream fix replaces the call with timer_shutdown_sync() so rearm attempts become ineffective once teardown begins.

Critical Impact

A race between RX BA session teardown and the BAR handler can trigger a kernel use-after-free, leading to memory corruption, denial of service, or potential local privilege escalation on affected wireless-enabled Linux systems.

Affected Products

  • Linux kernel mac80211 subsystem (wireless stack)
  • Distributions shipping unpatched stable kernel branches referenced in the upstream commits
  • Any Wi-Fi-enabled Linux endpoint, server, or embedded device using mac80211-based drivers

Discovery Timeline

  • 2026-10-18 - CVE-2026-98707 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-98707

Vulnerability Analysis

The vulnerability resides in the RX aggregation path of mac80211, which manages per-Traffic Identifier (TID) receive reorder buffers tracked by the tid_rx structure. During session teardown, the kernel previously called timer_delete_sync() on the session timer before freeing tid_rx through RCU. Because the BAR handler ieee80211_rx_h_ctrl() can hold a stale RCU reference to tid_rx and rearm the session timer, the timer could be re-queued after the delete-sync returned. When the RCU grace period expired and tid_rx was freed, the still-queued timer referenced freed memory.

The reorder_timer is not affected because teardown marks the session as removed under reorder_lock, and the release path checks that state before rearming. The session_timer lacks an equivalent guard because the BAR handler rearms it before taking reorder_lock, creating the window exploited by this race.

Root Cause

The root cause is a classic use-after-free [CWE-416] driven by a race condition between a timer teardown path and an RCU reader that can rearm the same timer. timer_delete_sync() guarantees the timer is not currently executing but does not prevent a concurrent caller from re-adding it. Freeing the backing object after that call therefore allows the resurrected timer to fire against freed memory.

Attack Vector

Exploitation requires the local system to process attacker-influenced 802.11 control frames while an RX BA session is being torn down. An attacker in Wi-Fi range who can send crafted BAR frames during specific session state transitions may trigger the race. Successful exploitation causes kernel memory corruption that typically manifests as a crash, though use-after-free primitives in kernel code can sometimes be leveraged for privilege escalation when combined with additional primitives.

The vulnerability is described in prose only; refer to the upstream commits for the exact code change replacing timer_delete_sync() with timer_shutdown_sync(). See Kernel Git Commit 09b7d5e and Kernel Git Commit e588e83e.

Detection Methods for CVE-2026-98707

Indicators of Compromise

  • Kernel oops or panic messages referencing mac80211, tid_rx, sta_rx_agg_session_timer_expired, or related timer callbacks
  • KASAN reports flagging use-after-free in the mac80211 RX aggregation path
  • Unexpected Wi-Fi interface resets or driver reload events correlated with BAR frame processing

Detection Strategies

  • Monitor kernel ring buffer (dmesg, journalctl -k) for BUG: or WARNING: entries involving mac80211 timer functions
  • Deploy KASAN-enabled kernels in test fleets to surface the condition during fuzzing or wireless stress testing
  • Correlate wireless driver crashes with proximity events or unusual 802.11 control frame volumes

Monitoring Recommendations

  • Collect and centralize kernel crash dumps from Linux endpoints and servers for retrospective analysis
  • Track kernel package versions across the fleet to identify hosts running unpatched mac80211 builds
  • Alert on repeated wireless interface reinitializations that may indicate exploitation attempts

How to Mitigate CVE-2026-98707

Immediate Actions Required

  • Apply the latest stable kernel updates from your Linux distribution that incorporate the upstream mac80211 fix
  • Prioritize patching of Wi-Fi-enabled laptops, IoT devices, and access points running Linux-based firmware
  • For high-risk environments, restrict exposure of wireless interfaces until patches are deployed

Patch Information

The upstream fix replaces timer_delete_sync() with timer_shutdown_sync() in the RX BA session teardown path so that rearm attempts after teardown become no-ops. Fix commits are available at Kernel Git Commit 09b7d5e, Kernel Git Commit 481f9230, Kernel Git Commit 7bb2a5bd, Kernel Git Commit d0da6abd, and Kernel Git Commit e588e83e. Verify your distribution kernel includes one of the backports before closing remediation tickets.

Workarounds

  • Disable Wi-Fi interfaces on systems that do not require wireless connectivity using rfkill block wifi or by unloading the affected driver module
  • Where feasible, restrict RX AMPDU aggregation via driver module parameters to reduce exposure of the vulnerable code path
  • Isolate unpatched devices on segmented wireless networks and limit proximity to untrusted clients
bash
# Example: disable Wi-Fi radios on hosts that do not need wireless
sudo rfkill block wifi

# Example: unload a mac80211-based driver (replace with your driver name)
sudo modprobe -r iwlwifi

# Verify kernel version after patching
uname -r

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.