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

CVE-2026-98182: Linux Kernel mac80211 Use-After-Free Vulnerability

CVE-2026-98182 is a use-after-free vulnerability in Linux kernel's mac80211 WiFi subsystem that causes NULL pointer dereference when activating monitor interfaces. This article covers technical details, impact analysis, and mitigation strategies.

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

CVE-2026-98182 is a NULL pointer dereference vulnerability in the Linux kernel's mac80211 wireless subsystem. The flaw occurs when a user activates monitor mode on a wireless interface that was not created with an active transmit queue (TXQ). The ath9k driver subsequently dereferences the missing queue structure, triggering a kernel crash. Triggering the condition requires the CAP_NET_ADMIN capability and can be reached through standard iw and ip commands against a down interface.

Critical Impact

Local users with CAP_NET_ADMIN can crash the kernel on systems using the ath9k wireless driver by toggling monitor mode on an inactive interface.

Affected Products

  • Linux kernel mac80211 subsystem
  • Linux kernel ath9k wireless driver
  • Linux distributions shipping affected kernel versions prior to the referenced stable commits

Discovery Timeline

  • 2026-10-06 - CVE CVE-2026-98182 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98182

Vulnerability Analysis

The vulnerability resides in the interaction between mac80211 and underlying wireless drivers when handling monitor interfaces. A monitor interface receives a dedicated TXQ only when it is created in the active state. The subsystem allowed setting the active flag on a monitor interface that was already down, bypassing the TXQ allocation path. When the interface was later brought up, the driver received a monitor without an associated queue.

In the ath9k driver, ath_tx_node_init dereferences the expected queue structure during ath9k_add_interface. The missing pointer produces a NULL pointer dereference at offset 0x66, as captured in the reported kernel panic. The call path proceeds through drv_add_interface and ieee80211_do_open in mac80211 before reaching the fatal access.

The fix refuses to set the active flag on a monitor interface when no queue is available to assign, blocking the inconsistent state before it reaches the driver.

Root Cause

The root cause is a missing precondition check in mac80211 when toggling the monitor-active flag. The subsystem assumed a TXQ would always be present but did not enforce that invariant for interfaces modified after creation. Drivers that trust the invariant, such as ath9k, then dereference a NULL queue pointer.

Attack Vector

A local user with the CAP_NET_ADMIN capability can reach the vulnerable path by running iw dev X set monitor active on a down interface followed by ip link set X up. RTNL (Routing Netlink) is held during the sequence, so concurrent netlink operations block behind the crashing thread. No remote vector exists. Exploitation produces a denial of service through kernel panic rather than code execution.

See the upstream kernel commits referenced in the mitigation section
for the exact patch and reproduction trace. No proof-of-concept code
is published here.

Detection Methods for CVE-2026-98182

Indicators of Compromise

  • Kernel panic logs containing BUG: kernel NULL pointer dereference, address: 0000000000000066 with RIP pointing to ath_tx_node_init in the ath9k module.
  • Call traces showing ath9k_add_interface, drv_add_interface, and ieee80211_do_open immediately preceding the crash.
  • Unexpected host reboots or hangs on systems with ath9k-based wireless hardware shortly after iw or ip link commands.

Detection Strategies

  • Monitor dmesg and /var/log/kern.log for the signature oops string and ath9k module frames.
  • Audit invocations of iw dev * set monitor active followed by ip link set * up against the same interface, particularly from non-root processes holding CAP_NET_ADMIN.
  • Correlate kernel crash telemetry with the running kernel version to identify unpatched hosts.

Monitoring Recommendations

  • Forward kernel ring buffer events to a centralized logging pipeline and alert on NULL pointer dereference signatures involving wireless modules.
  • Track process capability grants that include CAP_NET_ADMIN outside expected administrative accounts.
  • Inventory endpoints with Atheros ath9k wireless chipsets to prioritize patch deployment.

How to Mitigate CVE-2026-98182

Immediate Actions Required

  • Apply the upstream kernel patch or the vendor-provided stable kernel update that includes the referenced commits.
  • Restrict CAP_NET_ADMIN to trusted administrative users and audit existing grants on multi-user systems.
  • On hosts that cannot be patched immediately, avoid toggling monitor mode on down ath9k interfaces.

Patch Information

The fix is available in the following stable kernel commits: Kernel Commit 2b04d65, Kernel Commit 46c2234, Kernel Commit abe15e6, and Kernel Commit b7b7d46. The change causes mac80211 to refuse the active flag when no TXQ is available.

Workarounds

  • Unload or blacklist the ath9k driver on systems that do not require Atheros wireless support.
  • Prevent unprivileged processes from obtaining CAP_NET_ADMIN via systemd unit hardening or capability bounding sets.
  • Disable monitor-mode workflows on affected hosts until the kernel is updated.
bash
# Example: remove CAP_NET_ADMIN from a systemd service
# Append to the [Service] section of the unit file
CapabilityBoundingSet=~CAP_NET_ADMIN
AmbientCapabilities=

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.