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-98345 Overview
CVE-2026-98345 is an uninitialized memory read vulnerability in the Linux kernel's wireless configuration subsystem (cfg80211). The flaw resides in cfg80211_classify8021d() within net/wireless/util.c, where the function reads the Differentiated Services (DS) field of a frame that appears to be IP but is too short to contain a complete IP header. KMSAN (Kernel Memory Sanitizer) flagged the issue as a uninit-value read reachable from packet_sendmsg() through the mac80211 transmit path. The upstream fix replaces the unchecked header access with skb_header_pointer(), mirroring the approach already used for MPLS classification.
Critical Impact
A local user able to send crafted packets via AF_PACKET on a wireless interface can trigger reads of uninitialized kernel memory during 802.1d traffic classification, enabling information disclosure or undefined kernel behavior.
Affected Products
- Linux kernel (upstream mainline, net/wireless/util.c – cfg80211_classify8021d())
- Linux kernel stable branches prior to the backport commits listed in the kernel.org references
- Any Linux distribution shipping a vulnerable kernel with CONFIG_CFG80211 enabled
Discovery Timeline
- 2026-10-06 - CVE-2026-98345 published to the National Vulnerability Database
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98345
Vulnerability Analysis
The cfg80211_classify8021d() function maps outgoing frames to 802.1d user priority queues based on protocol headers. When the EtherType indicates IPv4 or IPv6, the function dereferences the IP header to extract the DS field (DSCP/ToS). The vulnerable code assumed the socket buffer (skb) contained a full IP header, but a caller using AF_PACKET can inject a frame that is syntactically IP but shorter than sizeof(struct iphdr) or sizeof(struct ipv6hdr). The resulting read extends past the valid header bytes into uninitialized skb memory, which KMSAN detects as a uninit-value fault.
The call chain reaches the sink through packet_sendmsg() → ieee80211_subif_start_xmit() → __ieee80211_subif_start_xmit() → ieee80211_select_queue() → cfg80211_classify8021d(). The condition is triggered on any wireless interface configured to accept raw packet transmission.
Root Cause
The root cause is missing bounds validation before reading protocol header fields. The function trusted the EtherType to imply header length rather than verifying that enough linear data was present in the skb. This is an uninitialized memory use pattern [CWE-908] combined with an out-of-bounds read [CWE-125].
Attack Vector
An attacker with local access and the ability to open an AF_PACKET socket can construct a truncated frame that advertises an IP EtherType but omits the full IP header. Transmitting the frame through a wireless netdev reaches cfg80211_classify8021d(), which reads beyond the frame's valid bytes. Exploitation requires CAP_NET_RAW on most systems, limiting remote reachability but exposing multi-tenant and container hosts where unprivileged namespaces grant equivalent capabilities.
// No verified exploit code is available for this issue.
// Refer to the upstream commits for the exact code path and fix.
Detection Methods for CVE-2026-98345
Indicators of Compromise
- KMSAN or KASAN kernel reports naming cfg80211_classify8021d+0x99d/0x12b0 or net/wireless/util.c:1027 in the stack trace
- Kernel oops or warning messages originating from ieee80211_select_queue reached via packet_sendmsg
- Unexpected process use of AF_PACKET sockets bound to wireless interfaces by non-networking workloads
Detection Strategies
- Run sanitizer-enabled kernels (KMSAN, KASAN) in test and staging to surface uninitialized reads before production exposure
- Audit installed kernel package versions against the stable commits (12c0abd4, 18d5547, 3ff17ff, 48b2c5c, 65893c8, a2cdb4a, c4fbcf1, f33ad4e) referenced in the fix series
- Correlate AF_PACKET socket creation with Wi-Fi interface activity using eBPF or auditd rules
Monitoring Recommendations
- Alert on socket(AF_PACKET, ...) syscalls from unexpected UIDs or container workloads
- Monitor kernel ring buffer (dmesg) for sanitizer and WARN_ON messages pointing to net/wireless/util.c
- Track kernel version drift across the fleet to confirm patch deployment coverage
How to Mitigate CVE-2026-98345
Immediate Actions Required
- Update to a Linux kernel that includes one of the fix commits published on kernel.org for the relevant stable branch
- Restrict CAP_NET_RAW and discourage unprivileged user namespaces on multi-tenant hosts until patched
- Rebuild and redeploy container host images once vendor-maintained kernels ship the backport
Patch Information
The fix replaces direct header dereferences in cfg80211_classify8021d() with skb_header_pointer(), matching the pattern already used for MPLS classification. The upstream commits are available on kernel.org: Kernel Commit 12c0abd4, Kernel Commit 18d5547, Kernel Commit 3ff17ff, Kernel Commit 48b2c5c, Kernel Commit 65893c8, Kernel Commit a2cdb4a, Kernel Commit c4fbcf1, and Kernel Commit f33ad4e. Apply the kernel update supplied by your distribution and reboot affected hosts.
Workarounds
- Disable or unload cfg80211/mac80211 modules on systems that do not require Wi-Fi functionality
- Remove CAP_NET_RAW from workloads that do not need raw packet access and set kernel.unprivileged_userns_clone=0 where supported
- Use seccomp profiles to block AF_PACKET socket creation in container workloads
# Example hardening until the kernel patch is applied
sysctl -w kernel.unprivileged_userns_clone=0
setcap -r /path/to/binary # remove inherited capabilities
# Verify running kernel against patched version
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

