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-97518 Overview
CVE-2026-97518 affects the Linux kernel's cfg80211 wireless configuration subsystem. The flaw allows duplicate entries in the wiphy->cipher_suites array to be accepted during driver registration. These duplicates propagate into downstream consumers, including the Wireless Extensions (WEXT) compatibility layer. When WEXT processes repeated Wired Equivalent Privacy (WEP) cipher entries, it can overflow the fixed iw_range::encoding_size array returned by the SIOCGIWRANGE ioctl. The resolved patch rejects malformed wiphy descriptions early in wiphy_register() with -EINVAL, consolidating the invariant check in one place instead of relying on each consumer.
Critical Impact
Malformed wireless driver cipher suite descriptions can trigger an out-of-bounds write in the WEXT compatibility layer's iw_range::encoding_size buffer.
Affected Products
- Linux kernel cfg80211 subsystem
- Wireless Extensions (WEXT) compatibility layer
- Kernel branches referenced in the upstream stable commits
Discovery Timeline
- 2026-09-24 - CVE-2026-97518 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97518
Vulnerability Analysis
The cfg80211 subsystem exposes a wiphy structure that describes the capabilities of a wireless device, including a cipher_suites array. Each entry in that array is intended to represent a distinct supported cipher. Historically, cfg80211 did not enforce uniqueness in this array, so a wireless driver registering a wiphy could pass duplicate cipher identifiers without failure.
One downstream consumer of this array is the WEXT compatibility code, which iterates cipher_suites and appends a WEP key length to the iw_range::encoding_size array for each WEP cipher it encounters. Because iw_range::encoding_size is a fixed-size array, repeated WEP entries can write past its bounds when SIOCGIWRANGE is serviced.
The fix enforces the invariant centrally in wiphy_register(), rejecting any wiphy registration containing duplicate cipher suite entries with -EINVAL. This prevents the malformed state from ever reaching consumer code.
Root Cause
The root cause is missing input validation in cfg80211 during wiphy registration. The subsystem trusted drivers to supply a well-formed cipher_suites array, but did not verify uniqueness. Combined with WEXT's assumption that each WEP cipher entry maps to a single encoding_size slot, this produced a bounded out-of-bounds write condition.
Attack Vector
Exploitation requires a wireless driver that registers a wiphy with duplicate WEP cipher suite entries. When a userspace process issues the SIOCGIWRANGE ioctl against such an interface, the WEXT handler writes beyond iw_range::encoding_size. The vector is local and depends on either a malformed in-tree driver, an out-of-tree driver, or a loadable module that exposes a crafted cipher_suites array.
No verified public exploit code is available. See the upstream fix commits for implementation detail: kernel.org commit 1305f8b9, kernel.org commit 4cbb2360, and kernel.org commit 7187d145.
Detection Methods for CVE-2026-97518
Indicators of Compromise
- Kernel log entries showing wiphy_register() returning -EINVAL after applying the patch, indicating a driver with duplicate cipher entries.
- Unexpected memory corruption or kernel oops traces originating in WEXT paths handling SIOCGIWRANGE.
- Loading of out-of-tree or vendor wireless drivers on hosts running unpatched kernels.
Detection Strategies
- Inventory running kernel versions and compare against the stable branches that received the three upstream commits referenced above.
- Audit third-party and vendor wireless drivers for cipher_suites arrays that may contain duplicate entries.
- Monitor kernel ring buffer messages (dmesg) for cfg80211 registration failures following patch deployment.
Monitoring Recommendations
- Forward kernel logs to a centralized logging platform and alert on cfg80211 or wiphy errors.
- Track module load events for wireless drivers and correlate with host kernel version.
- Baseline SIOCGIWRANGE ioctl frequency on wireless-capable hosts to identify unusual userspace probing.
How to Mitigate CVE-2026-97518
Immediate Actions Required
- Apply the stable kernel update containing the wiphy_register() duplicate cipher suite rejection patch.
- Rebuild and reload any out-of-tree wireless drivers against a patched kernel to surface malformed cipher_suites arrays.
- Restrict loading of untrusted kernel modules on production hosts.
Patch Information
The fix is distributed across three upstream commits that add duplicate detection in wiphy_register() and return -EINVAL on malformed input. Reference the commits for backport guidance: kernel.org commit 1305f8b9, kernel.org commit 4cbb2360, and kernel.org commit 7187d145.
Workarounds
- Blacklist wireless drivers known to register duplicate cipher suites until a patched kernel is deployed.
- Disable the WEXT compatibility layer where feasible, since the overflow path runs through SIOCGIWRANGE.
- Restrict access to wireless interfaces using capability or namespace controls to limit userspace invocation of legacy ioctls.
# Example: prevent a suspect wireless module from loading
echo 'blacklist suspect_wifi_driver' | sudo tee /etc/modprobe.d/blacklist-cve-2026-97518.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

