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

CVE-2026-98346: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-98346 is a buffer overflow flaw in the Linux kernel cfg80211 component that causes system crashes when handling wireless devices. This post explains its technical details, affected versions, impact, and mitigation steps.

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

CVE-2026-98346 is a null pointer dereference vulnerability in the Linux kernel's cfg80211 wireless configuration subsystem. The flaw resides in cfg80211_calculate_bi_data(), which calls rdev_get_radio_mask() using wdev->netdev without first validating that the netdev pointer is non-NULL. When invoked for netdev-less wireless devices (wdevs), the dereference propagates into mac80211 and triggers a kernel crash. The upstream fix inverts the order of checks because wdev->netdev is always valid for beaconing interfaces, avoiding the unsafe dereference path.

Critical Impact

A local trigger reaching the beacon interval calculation path on a netdev-less wireless device causes a kernel-mode null pointer dereference, resulting in a system crash and denial of service.

Affected Products

  • Linux kernel versions containing the vulnerable cfg80211_calculate_bi_data() logic prior to the referenced stable commits
  • Systems using the cfg80211 and mac80211 wireless stacks
  • Distributions shipping affected mainline and stable kernel branches

Discovery Timeline

  • 2026-10-06 - CVE-2026-98346 published to the National Vulnerability Database (NVD)
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98346

Vulnerability Analysis

The defect lives in the Linux kernel's cfg80211 layer, which brokers configuration between user space and the mac80211 driver framework. The function cfg80211_calculate_bi_data() computes beacon interval data for wireless devices and queries the active radio mask through rdev_get_radio_mask(). That helper is passed wdev->netdev directly, assuming the wireless device always has a backing network device.

For interfaces that do not have an associated netdev, the pointer is NULL. The subsequent dereference in mac80211 crashes the kernel. The fix reorders the conditional logic so that netdev-less wdev instances are filtered out before any netdev-dependent lookup occurs, leveraging the invariant that beaconing interfaces always expose a valid netdev.

Root Cause

The root cause is a missing precondition check on wdev->netdev prior to passing it to a helper that unconditionally dereferences the pointer. This is a classic null pointer dereference pattern in kernel code where an invariant assumed by one subsystem is not enforced by the caller in another subsystem.

Attack Vector

Exploitation requires reaching the cfg80211_calculate_bi_data() code path with a wdev that lacks a netdev. This typically requires local privileges to create or manipulate wireless interface types that can exist without a backing network device. The outcome is a kernel oops or panic, producing a denial-of-service condition rather than code execution.

No verified exploit code is published for CVE-2026-98346. Technical details are available in the referenced upstream commits: Kernel Git Commit 5b31315, Kernel Git Commit 693d777, Kernel Git Commit 7166da8, and Kernel Git Commit a7783e5.

Detection Methods for CVE-2026-98346

Indicators of Compromise

  • Kernel oops or panic messages referencing cfg80211_calculate_bi_data, rdev_get_radio_mask, or mac80211 in dmesg and /var/log/kern.log
  • Unexpected wireless interface resets or system reboots correlated with wireless configuration changes
  • Crash dumps containing a NULL pointer dereference backtrace through the cfg80211 beacon interval calculation path

Detection Strategies

  • Inventory running kernels against the fixed stable commits and flag hosts still on vulnerable builds
  • Monitor kernel ring buffer output for NULL pointer dereference signatures originating in wireless subsystem functions
  • Correlate wireless interface creation events (for example, nl80211 activity) with subsequent kernel instability on the same host

Monitoring Recommendations

  • Forward dmesg and systemd journal data to a centralized logging or SIEM platform and alert on kernel oops patterns
  • Track package and kernel versions through configuration management tooling to confirm patch rollout
  • Watch for repeated host crashes on systems that use software access points, mesh, or other beaconing wireless modes

How to Mitigate CVE-2026-98346

Immediate Actions Required

  • Apply the stable kernel updates that include the upstream fix inverting the netdev check order in cfg80211_calculate_bi_data()
  • Reboot affected systems after installing the patched kernel so the vulnerable code is unloaded from memory
  • Restrict local access on multi-user hosts that run wireless subsystems while patching is in progress

Patch Information

The fix is published through four upstream stable commits: Kernel Git Commit 5b31315, Kernel Git Commit 693d777, Kernel Git Commit 7166da8, and Kernel Git Commit a7783e5. Consume the fix through your distribution's kernel package channel once it ships the corresponding stable version.

Workarounds

  • Avoid creating netdev-less wireless device types on vulnerable kernels until the patch is deployed
  • Unload the cfg80211 and mac80211 modules on systems that do not require wireless functionality to remove the vulnerable code path
  • Limit CAP_NET_ADMIN and related capabilities to trusted administrative accounts to reduce the ability to reach the vulnerable interface configuration code
bash
# Verify installed kernel version and confirm the patched build is active
uname -r

# Example: blocklist wireless modules on systems that do not need wireless
echo "blacklist cfg80211" | sudo tee /etc/modprobe.d/disable-wifi.conf
echo "blacklist mac80211" | sudo tee -a /etc/modprobe.d/disable-wifi.conf
sudo update-initramfs -u

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.