CVE-2026-139504: wifi: mm81x: check bytes_remaining before reading delimiter

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

wifi: mm81x: check bytesremaining before reading delimiter

mm81xyapshwreadpkts() reads a full 4-byte delimiter and then subtracts sizeof(delim) from bytesremaining on every loop iteration, guarded only by "bytesremaining > 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 bytesremaining negative.

A negative bytesremaining then reaches the totallen > bytesremaining branch, where "bytesremaining" is passed to memcpy() as the copy length. Implicitly converted to sizet, 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the mm81x packet-splitting loop, bail out when fewer than sizeof(delim) bytes remain before reading the delimiter.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the out-of-bounds copy?

The packet-read loop must reach a state where only 1 to 3 bytes remain in its valid data window. It then reads a 4-byte delimiter, makes bytes_remaining negative, and can pass that negative value to memcpy() as a length.

2

What is the practical impact of the integer underflow?

When the negative bytes_remaining value is implicitly converted to size_t for memcpy(), it becomes a very large unsigned length. This can cause a massive out-of-bounds copy.

3

Is there a mitigation described for systems that cannot immediately apply the fix?

The provided data describes the code-level mitigation: stop the split loop when fewer than sizeof(delim) bytes remain, matching the existing handling for a zero delimiter. No operational workaround or configuration-based mitigation is provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203