{"id":"CVE-2026-139504","aliases":["CVE-2026-139504"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: mm81x: check bytes_remaining before reading delimiter","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mm81x: check bytes_remaining before reading delimiter\n\nmm81x_yaps_hw_read_pkts() reads a full 4-byte delimiter and then\nsubtracts sizeof(delim) from bytes_remaining on every loop iteration,\nguarded only by \"bytes_remaining > 0\". If 1-3 bytes are left in the\nwindow, this reads past the end of the valid data and then subtracts\n4 from a value smaller than 4, driving bytes_remaining negative.\n\nA negative bytes_remaining then reaches the total_len > bytes_remaining\nbranch, where \"bytes_remaining\" is passed to memcpy() as the copy\nlength. Implicitly converted to size_t, a negative int becomes a\nhuge value, turning that memcpy() into a massive out-of-bounds copy.\n\nBail out of the split loop once fewer than sizeof(delim) bytes remain,\nthe same way the existing \"end of stream\" check bails on a zero\ndelimiter.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mm81x: check bytes_remaining before reading delimiter\n\nmm81x_yaps_hw_read_pkts() reads a full 4-byte delimiter and then\nsubtracts sizeof(delim) from bytes_remaining on every loop iteration,\nguarded only by \"bytes_remaining > 0\". If 1-3 bytes are left in the\nwindow, this reads past the end of the valid data and then subtracts\n4 from a value smaller than 4, driving bytes_remaining negative.\n\nA negative bytes_remaining then reaches the total_len > bytes_remaining\nbranch, where \"bytes_remaining\" is passed to memcpy() as the copy\nlength. Implicitly converted to size_t, a negative int becomes a\nhuge value, turning that memcpy() into a massive out-of-bounds copy.\n\nBail out of the split loop once fewer than sizeof(delim) bytes remain,\nthe same way the existing \"end of stream\" check bails on a zero\ndelimiter.","source":"cvelist"}],"published":"2026-11-30T13:35:21.746Z","modified":"2026-11-30T14:19:25.943Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b1906cea00b021acea22460225401d5b27bc7c36","fixed":"0f3c6b1b62f3ba755b7b4f5b03335eb91d144f29","status":"affected"},{"type":"git","introduced":"b1906cea00b021acea22460225401d5b27bc7c36","fixed":"54a54c06868d0c2beb9ec3e2ffda0f6cb33d5c8e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.3","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0f3c6b1b62f3ba755b7b4f5b03335eb91d144f29","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54a54c06868d0c2beb9ec3e2ffda0f6cb33d5c8e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139504","url":"https://www.cve.org/CVERecord?id=CVE-2026-139504","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:21.746Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139504","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139504","licence":"Public domain","modified":"2026-11-30T14:19:25.943Z"}],"updatedAt":"2026-11-30T14:33:21.918Z","epss":{"score":0.00156,"percentile":0.04988,"date":"2026-12-01T12:00:22.000Z"}}