CVE-2026-139504

wifi: mm81x: check bytes_remaining before reading delimiter

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

wifi: mm81x: check bytes_remaining before reading delimiter

mm81x_yaps_hw_read_pkts() reads a full 4-byte delimiter and then
subtracts sizeof(delim) from bytes_remaining on every loop iteration,
guarded only by "bytes_remaining > 0". If 1-3 bytes are left in the
window, this reads past the end of the valid data and then subtracts
4 from a value smaller than 4, driving bytes_remaining negative.

A negative bytes_remaining then reaches the total_len > bytes_remaining
branch, where "bytes_remaining" is passed to memcpy() as the copy
length. Implicitly converted to size_t, a negative int becomes a
huge value, turning that memcpy() into a massive out-of-bounds copy.

Bail out of the split loop once fewer than sizeof(delim) bytes remain,
the same way the existing "end of stream" check bails on a zero
delimiter.

Analysis

AI-generated

Technical impact

The mm81x driver in the Linux kernel incorrectly handles the bytes_remaining counter when reading a 4‑byte delimiter. If less than four bytes remain, the counter becomes negative and is passed to memcpy as an unsigned size, causing a massive out‑of‑bounds copy that can corrupt the kernel heap or stack. This flaw can be leveraged to corrupt memory and potentially run arbitrary code with kernel privileges, resulting in denial of service or full system takeover.

Affected Systems

Any Linux system that includes the mm81x Wi‑Fi driver and has not yet applied the patch referenced in the kernel commit history. No specific kernel version range is provided, so all releases containing the vulnerable code before the commit are potentially affected.

Risk and Exploitability

The vulnerability is not currently listed in CISA KEV and no EPSS or CVSS score is available, but it is reachable via normal Wi‑Fi traffic and could be triggered by a crafted frame that depletes bytes_remaining below four. The lack of public exploit metrics does not mitigate the risk; memory corruption at kernel level is a high‑severity condition that attackers could exploit for privilege escalation or remote code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the mm81x driver fix reported in the commit history.
  • If an upgrade is not immediately possible, prevent the mm81x driver from loading or replace it with a non‑vulnerable alternative.
  • Monitor kernel logs for OOPS or BUG messages that indicate the vulnerability is being triggered and apply any network‑level filtering to block malformed frames to the device.

Generated by OpenCVE AI on November 30, 2026 at 23:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: wifi: mm81x: check bytes_remaining before reading delimiter mm81x_yaps_hw_read_pkts() reads a full 4-byte delimiter and then subtracts sizeof(delim) from bytes_remaining on every loop iteration, guarded only by "bytes_remaining > 0". If 1-3 bytes are left in the window, this reads past the end of the valid data and then subtracts 4 from a value smaller than 4, driving bytes_remaining negative. A negative bytes_remaining then reaches the total_len > bytes_remaining branch, where "bytes_remaining" is passed to memcpy() as the copy length. Implicitly converted to size_t, a negative int becomes a huge value, turning that memcpy() into a massive out-of-bounds copy. Bail out of the split loop once fewer than sizeof(delim) bytes remain, the same way the existing "end of stream" check bails on a zero delimiter.
Title wifi: mm81x: check bytes_remaining before reading delimiter
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM