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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-30T13:35:21.746Z
- Modified: 2026-11-30T14:19:25.943Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from b1906cea00b021acea22460225401d5b27bc7c36 before 0f3c6b1b62f3ba755b7b4f5b03335eb91d144f29; from b1906cea00b021acea22460225401d5b27bc7c36 before 54a54c06868d0c2beb9ec3e2ffda0f6cb33d5c8e; 7.3 (not affected: before 7.3; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/0f3c6b1b62f3ba755b7b4f5b03335eb91d144f29>
- <https://git.kernel.org/stable/c/54a54c06868d0c2beb9ec3e2ffda0f6cb33d5c8e>

## Sources

- CVE List: [CVE-2026-139504](https://www.cve.org/CVERecord?id=CVE-2026-139504), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139504](https://nvd.nist.gov/vuln/detail/CVE-2026-139504), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139504 · Whole record: https://cve.day/CVE-2026-139504.json · Rebuilt by cve.day 2026-11-30T14:33:21.918Z
