{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "3e08773c3841e9db7a520908cc2b136a77d275ff"
            },
            {
              "fixed": "e40dc9c454ef3fc136e2de2e69f365cc570bd7a6"
            },
            {
              "fixed": "7394fa1f5cba107a5b921e0b359af660a212bf7f"
            },
            {
              "fixed": "f6d85fc206d58ac6d91e73e865329124ba57be60"
            },
            {
              "fixed": "24974185999fd80b676fbe2a6c7a97bbd38aaf3a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.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-139126.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don't trust the cookie in blk_mq_poll()\n\nblk_mq_poll() indexes queue_hw_ctx[] with bio-\u003ebi_cookie unchecked. Zone\nwrite plugging keeps the segment count of a plugged write in\n__bi_nr_segments, which shares a union with the cookie, and clears\nREQ_POLLED, but bio_poll() only looks at the cookie. A plugged polled\nwrite with more segments than there are hardware queues reads past the\narray. The bio is also SLAB_TYPESAFE_BY_RCU, so a cookie from a bio\nreused for another device can meet the wrong array as well.\n\nIgnore a cookie that is out of range or doesn't name a poll queue.",
  "id": "CVE-2026-139126",
  "modified": "2026-11-30T14:45:50.746256055Z",
  "published": "2026-11-30T13:31:49.271Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/24974185999fd80b676fbe2a6c7a97bbd38aaf3a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7394fa1f5cba107a5b921e0b359af660a212bf7f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e40dc9c454ef3fc136e2de2e69f365cc570bd7a6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f6d85fc206d58ac6d91e73e865329124ba57be60"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139126.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139126"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "blk-mq: don't trust the cookie in blk_mq_poll()"
}