{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "b1906cea00b021acea22460225401d5b27bc7c36"
            },
            {
              "fixed": "0f3c6b1b62f3ba755b7b4f5b03335eb91d144f29"
            },
            {
              "fixed": "54a54c06868d0c2beb9ec3e2ffda0f6cb33d5c8e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.3.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139504.json"
  },
  "details": "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 \u003e 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 \u003e 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.",
  "id": "CVE-2026-139504",
  "modified": "2026-12-01T20:45:39.641662321Z",
  "published": "2026-11-30T13:35:21.746Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0f3c6b1b62f3ba755b7b4f5b03335eb91d144f29"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/54a54c06868d0c2beb9ec3e2ffda0f6cb33d5c8e"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139504.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139504"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "wifi: mm81x: check bytes_remaining before reading delimiter"
}