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-98334 Overview
CVE-2026-98334 affects the Linux kernel's mac80211 wireless subsystem. The flaw resides in ieee80211_start_ap(), which can set enable_beacon and beacon_int state before failing later in the start sequence. When the function fails after setting these values, the state remains configured indefinitely on the interface.
Subsequent scan operations can then attempt to restore beaconing on an interface that never completed AP initialization. This produces a divide-by-zero error in mac80211_hwsim_link_info_changed and triggers warnings in the off-channel code path. The condition also allows interface type changes to proceed with inconsistent beacon state.
Critical Impact
Local triggering of a divide-by-zero kernel oops in the mac80211 subsystem, resulting in a denial of service on affected Linux systems with wireless interfaces.
Affected Products
- Linux kernel versions containing the vulnerable ieee80211_start_ap() logic in net/mac80211/
- Systems using mac80211-based wireless drivers, including mac80211_hwsim
- Distributions shipping kernels prior to the fixes referenced in the upstream stable commits
Discovery Timeline
- 2026-10-06 - CVE-2026-98334 published to the National Vulnerability Database (NVD)
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98334
Vulnerability Analysis
The vulnerability is a state management flaw in the Linux kernel's mac80211 wireless networking stack. The function ieee80211_start_ap() configures beacon state on a wireless interface in two stages. It sets enable_beacon to true and populates beacon_int before completing driver-level setup. If a later step in the start sequence fails, the function returns an error without reverting these fields.
The inconsistent state becomes dangerous when the scanning subsystem runs. The off-channel return path in ieee80211_offchannel_return() consults the stored beacon state and tries to re-notify the driver that beaconing is active. In mac80211_hwsim_link_info_changed, this triggers arithmetic that uses beacon_int as a divisor, producing a divide-by-zero exception when the value is invalid.
A second code path in ieee80211_offchannel_stop_vifs() also reaches this inconsistent interface. The kernel then raises a warning from drv_link_info_changed() during ieee80211_start_sw_scan(). Because cfg80211 also permits interface type changes while the stale state is set, additional driver notifications can fire against an interface in an invalid configuration.
Root Cause
The root cause is an error path that does not restore prior state. ieee80211_start_ap() mutates enable_beacon and beacon_int before all failure conditions have been checked. The fix resets this state on failure so that subsequent scanning, off-channel, and interface-type transitions do not act on half-initialized beacon configuration.
Attack Vector
Triggering the condition requires local access with privileges sufficient to configure wireless interfaces, typically CAP_NET_ADMIN. An actor who can request AP mode start on a wireless interface and then induce a failure during the start sequence can leave the interface in the vulnerable state. Scanning activity, which can be initiated by local users or network manager daemons, then exercises the faulty path and crashes the kernel.
No authenticated remote vector is described in the upstream report. The reproducer traces come from the hwsim virtual driver under KASAN instrumentation. See the upstream fixes in the Linux Kernel Commit 3f28551, Linux Kernel Commit 5d5ff5b, Linux Kernel Commit 6eac225, and Linux Kernel Commit d83da43.
Detection Methods for CVE-2026-98334
Indicators of Compromise
- Kernel log entries containing Oops: divide error with a RIP symbol of mac80211_hwsim_link_info_changed or another mac80211 driver
- Call traces including ieee80211_offchannel_return, __ieee80211_scan_completed, or ieee80211_scan_work
- Warnings sourced from net/mac80211/driver-ops.c:468 emitted during ieee80211_start_sw_scan
- Unexpected wireless interface resets or AP start failures correlated with scan activity
Detection Strategies
- Monitor dmesg and /var/log/kern.log for divide errors and warnings referencing mac80211 symbols
- Correlate kernel crash telemetry with wireless interface state transitions between AP mode start and scan events
- Use eBPF or audit rules to track invocations of ieee80211_start_ap that return non-zero immediately before scan activity
- Compare installed kernel versions against the stable commits listed in the upstream references
Monitoring Recommendations
- Forward kernel panic and warning events to a centralized logging platform for correlation
- Alert on repeated AP start failures on the same wireless interface within short time windows
- Track interface type changes on wireless devices and flag transitions that follow failed AP starts
- Baseline normal scan and off-channel event rates to detect spikes that may indicate exploitation attempts
How to Mitigate CVE-2026-98334
Immediate Actions Required
- Identify Linux hosts running kernels that predate the referenced upstream commits in net/mac80211/
- Apply vendor-supplied kernel updates that include the state reset fix for ieee80211_start_ap()
- Restrict CAP_NET_ADMIN on multi-user systems to limit who can configure AP mode
- Reboot affected systems after patching to load the corrected mac80211 module
Patch Information
The fix resets enable_beacon and beacon_int on failure paths in ieee80211_start_ap(). Patches are available in the upstream stable tree at Linux Kernel Commit 3f28551, Linux Kernel Commit 5d5ff5b, Linux Kernel Commit 6eac225, and Linux Kernel Commit d83da43. Distribution maintainers will backport these commits into supported stable kernel branches.
Workarounds
- Disable AP mode on wireless interfaces where it is not required
- Unload the mac80211_hwsim module on systems that do not need wireless simulation
- Restrict access to tools that can start AP mode, such as hostapd and iw, through sudo policies
- Avoid issuing scans immediately after AP start failures until a patched kernel is deployed
# Verify kernel version and mac80211 module status
uname -r
modinfo mac80211 | grep -E '^(version|srcversion)'
# Prevent loading of the hwsim test driver on production systems
echo 'blacklist mac80211_hwsim' | sudo tee /etc/modprobe.d/blacklist-hwsim.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

