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-98341 Overview
CVE-2026-98341 is a use-after-free vulnerability in the Linux kernel's cfg80211 wireless configuration subsystem. The flaw occurs when a wireless interface goes down while a scan is running. The cfg80211 layer completes the scan toward userspace and frees the scan request, while the driver can still believe it owns the request because cancellation is asynchronous. A WARN_ON() in the netdev notifier was intended to catch this condition, but the race is unavoidable in the current architecture, which leads to a use-after-free in scan_done().
Critical Impact
A local attacker with the ability to trigger wireless scans and interface state changes can corrupt kernel memory, enabling privilege escalation or kernel code execution.
Affected Products
- Linux kernel versions containing the vulnerable cfg80211 scan request handling logic
- Distributions shipping affected mainline and stable kernel branches
- Systems using Wi-Fi drivers that rely on cfg80211 driver-owned scan requests
Discovery Timeline
- 2026-10-06 - CVE-2026-98341 published to the National Vulnerability Database (NVD)
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-98341
Vulnerability Analysis
The cfg80211 subsystem coordinates wireless scan operations between userspace, the kernel, and the underlying Wi-Fi driver. Scan requests may be driver-owned, meaning the driver retains a pointer to the request structure for the lifetime of the scan.
When a wireless interface transitions down while a scan is in progress, cfg80211 completes the scan toward userspace and frees the request. However, the driver's cancellation path is asynchronous, so the driver can still be convinced that it owns the request. When the driver later calls scan_done() with its stale pointer, it dereferences freed memory.
The original design relied on a WARN_ON() inside the netdev notifier to flag this condition, but the race is architecturally unavoidable. The fix tracks whether the driver still believes it owns the request and defers freeing until completion if the scan was already cancelled. The warnings are removed since they can fire during normal operation.
Root Cause
The root cause is a lifetime management flaw between cfg80211 and Wi-Fi drivers in handling driver-owned scan requests during interface teardown. Asynchronous cancellation does not synchronize ownership transfer, allowing cfg80211 to free a request the driver still references.
Attack Vector
Exploitation requires local access and the ability to initiate a wireless scan and trigger an interface state change that races with scan completion. Successful exploitation produces a use-after-free in scan_done(), which an attacker can leverage to corrupt kernel memory structures.
No verified public exploit code is available. See the upstream fixes referenced in Kernel Git Commit cf6da29, Kernel Git Commit dab68a74, and Kernel Git Commit e8c75736 for technical details of the vulnerable code paths.
Detection Methods for CVE-2026-98341
Indicators of Compromise
- Unexpected kernel oops or panic messages referencing scan_done, cfg80211, or __cfg80211_scan_done in dmesg or /var/log/kern.log.
- WARN_ON traces originating from the netdev notifier on affected kernels prior to the removal of those warnings.
- Repeated wireless interface up/down transitions correlated with scan activity from unprivileged processes.
Detection Strategies
- Enable Kernel Address Sanitizer (KASAN) builds in test environments to surface the use-after-free during scan cancellation races.
- Monitor kernel ring buffer output for slab corruption reports and freed-object dereferences in cfg80211 call stacks.
- Audit local processes invoking NL80211_CMD_TRIGGER_SCAN alongside interface state changes via rtnetlink.
Monitoring Recommendations
- Forward kernel logs to a central logging platform and alert on cfg80211 crash signatures or BUG: KASAN entries.
- Track installed kernel versions across the fleet to identify endpoints still running vulnerable builds.
- Correlate wireless subsystem crashes with user session activity to identify suspicious local behavior.
How to Mitigate CVE-2026-98341
Immediate Actions Required
- Apply the upstream stable kernel updates containing commits cf6da29d, dab68a74e, and e8c75736cfd as soon as vendor packages are available.
- Prioritize patching on multi-user Linux systems, shared workstations, and endpoints where untrusted local accounts have access to wireless interfaces.
- Reboot systems after kernel upgrades to activate the patched cfg80211 module.
Patch Information
The fix tracks whether the driver still owns the scan request and defers freeing the request until completion if it was already cancelled, eliminating the race that produced the use-after-free in scan_done(). The redundant WARN_ON() statements are removed because the condition is reachable under normal operation. Patched commits are available at Kernel Git Commit cf6da29, Kernel Git Commit dab68a74, and Kernel Git Commit e8c75736.
Workarounds
- Restrict local user access on multi-user Linux systems until the kernel patch is applied.
- Disable wireless interfaces on systems that do not require Wi-Fi connectivity by unloading the relevant driver module.
- Limit which users or processes can trigger wireless scans and interface state changes through standard Linux capability controls.
# Verify current kernel version and confirm patch status after update
uname -r
# Temporarily unload a Wi-Fi driver module where wireless is not required
sudo rmmod iwlwifi
# Block automatic reload until patched kernel is deployed
echo "blacklist iwlwifi" | sudo tee /etc/modprobe.d/disable-wifi.conf
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

