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

CVE-2026-98184: Linux Kernel mwifiex Buffer Overflow Vulnerability

CVE-2026-98184 is a buffer overflow flaw in the Linux kernel mwifiex driver that enables heap memory corruption during WiFi authentication. This article covers the technical details, affected versions, security impact, and mitigation strategies.

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

CVE-2026-98184 is a heap buffer overflow in the Linux kernel's mwifiex wireless driver. The flaw lives in mwifiex_cfg80211_authenticate(), which computes an authentication frame length from req->ie_len and req->auth_data_len. Both fields are size_t, but the result is stored in a u16 named pkt_len. When the sum exceeds U16_MAX, truncation shrinks the socket buffer allocation while the copy length stays large, overflowing the heap. Reaching the vulnerable path requires CAP_NET_ADMIN in the user namespace owning the network namespace, an active station netdev, and a crafted BSS or SAE authentication request.

Critical Impact

A local user with CAP_NET_ADMIN can trigger a kernel heap buffer overflow in the mwifiex Wi-Fi driver, enabling memory corruption that may lead to privilege escalation or kernel code execution.

Affected Products

  • Linux kernel versions containing the mwifiex driver prior to the fix commits
  • Systems using Marvell mwifiex Wi-Fi hardware with a station mode netdev
  • Distributions shipping affected stable kernel branches referenced in the upstream fix series

Discovery Timeline

  • 2026-10-06 - CVE-2026-98184 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98184

Vulnerability Analysis

The flaw is a classic numeric truncation leading to a heap buffer overflow [CWE-190, CWE-122]. mwifiex_cfg80211_authenticate() builds a management frame whose body contains caller-supplied Information Elements (IEs) and authentication data from NL80211_ATTR_AUTH_DATA. The netlink policy for NL80211_ATTR_AUTH_DATA enforces only a minimum length, so a single attribute can carry up to 65,531 bytes because nla_len is itself a u16. Adding IE bytes on top can push the computed frame length well past U16_MAX.

The driver assigns the sum to a u16 pkt_len, discarding the high bits. The truncated value is then used to size the skb via skb_put(), while the subsequent memcpy of the authentication body uses req->auth_data_len - 4 — the untruncated length — as its size. The result is that the driver writes tens of kilobytes of user-controlled data past the end of a small kernel heap allocation.

Root Cause

The root cause is implicit narrowing of size_t arithmetic into a u16 field without a range check. The firmware interface for frame length is 16 bits, but the input lengths used to construct that value are not bounded before assignment. No validation rejects sums that cannot be represented in u16.

Attack Vector

Exploitation is local. A process holding CAP_NET_ADMIN in the user namespace that owns the network namespace of an mwifiex station interface issues a NL80211_CMD_AUTHENTICATE request with an oversized NL80211_ATTR_AUTH_DATA payload. For example, with auth_data_len = 65510 and no IEs, the sum of 65,546 truncates to 10 and is then reduced to 6. The driver calls skb_put() for only six bytes but copies 65,506 attacker-controlled bytes into the authentication body, corrupting adjacent kernel heap memory.

See the upstream fix series for the exact code paths: Kernel Commit 25c45a2, Kernel Commit 5747eaa, Kernel Commit 877b61a, and Kernel Commit fa00193.

Detection Methods for CVE-2026-98184

Indicators of Compromise

  • Kernel oops, BUG: entries, or KASAN slab-out-of-bounds reports referencing mwifiex_cfg80211_authenticate or neighboring mwifiex symbols
  • Unexpected process crashes, service restarts, or kernel panics on hosts with Marvell Wi-Fi hardware after an authentication attempt
  • nl80211NL80211_CMD_AUTHENTICATE requests originating from unprivileged user namespaces that hold CAP_NET_ADMIN

Detection Strategies

  • Enable KASAN on test and canary systems to surface the heap overflow during fuzzing of nl80211 interfaces
  • Audit for processes creating user namespaces and gaining CAP_NET_ADMIN on hosts with mwifiex loaded
  • Collect dmesg and journal data for mwifiex warnings and correlate against authentication activity on wireless interfaces

Monitoring Recommendations

  • Monitor module load events for mwifiex and mwifiex_pcie or mwifiex_sdio on systems where Wi-Fi is not required
  • Alert on clone() or unshare() calls that create user namespaces followed by netlink socket activity on NETLINK_ROUTE or genl families
  • Track crash telemetry and kernel ring buffer anomalies on fleet endpoints running affected kernel versions

How to Mitigate CVE-2026-98184

Immediate Actions Required

  • Apply the upstream stable kernel updates that incorporate the four fix commits listed in the vendor references
  • Unload the mwifiex driver on systems that do not require Marvell Wi-Fi functionality using rmmod mwifiex and blacklist the module
  • Restrict CAP_NET_ADMIN in unprivileged user namespaces where feasible by setting kernel.unprivileged_userns_clone = 0 or equivalent policy

Patch Information

The fix computes the frame length in size_t, rejects values that cannot be represented in the firmware's u16 frame length field, and only then assigns the validated value to pkt_len. Patches are available in the mainline and stable trees via Kernel Commit 25c45a2, Kernel Commit 5747eaa, Kernel Commit 877b61a, and Kernel Commit fa00193. Rebuild and reboot into a patched kernel to fully remediate.

Workarounds

  • Blacklist the mwifiex module on hosts that do not need Marvell Wi-Fi: add blacklist mwifiex to /etc/modprobe.d/
  • Disable or remove the affected wireless interface so no station netdev is available for authentication requests
  • Harden user namespace creation to prevent unprivileged processes from obtaining CAP_NET_ADMIN on the netns owning the Wi-Fi device
bash
# Configuration example
# Disable unprivileged user namespaces (reduces attack surface)
sudo sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' | sudo tee /etc/sysctl.d/99-userns.conf

# Blacklist the mwifiex driver if Marvell Wi-Fi is not required
echo 'blacklist mwifiex' | sudo tee /etc/modprobe.d/blacklist-mwifiex.conf
sudo rmmod mwifiex_pcie mwifiex_sdio mwifiex 2>/dev/null

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.