CVE-2026-139126 (GCVE-0-2026-139126)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:31 – Updated: 2026-12-01 05:41
VLAI
Title
blk-mq: don't trust the cookie in blk_mq_poll()
Summary
In the Linux kernel, the following vulnerability has been resolved: blk-mq: don't trust the cookie in blk_mq_poll() blk_mq_poll() indexes queue_hw_ctx[] with bio->bi_cookie unchecked. Zone write plugging keeps the segment count of a plugged write in __bi_nr_segments, which shares a union with the cookie, and clears REQ_POLLED, but bio_poll() only looks at the cookie. A plugged polled write with more segments than there are hardware queues reads past the array. The bio is also SLAB_TYPESAFE_BY_RCU, so a cookie from a bio reused for another device can meet the wrong array as well. Ignore a cookie that is out of range or doesn't name a poll queue.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 3e08773c3841e9db7a520908cc2b136a77d275ff , < e40dc9c454ef3fc136e2de2e69f365cc570bd7a6 (git)
Affected: 3e08773c3841e9db7a520908cc2b136a77d275ff , < 7394fa1f5cba107a5b921e0b359af660a212bf7f (git)
Affected: 3e08773c3841e9db7a520908cc2b136a77d275ff , < f6d85fc206d58ac6d91e73e865329124ba57be60 (git)
Affected: 3e08773c3841e9db7a520908cc2b136a77d275ff , < 24974185999fd80b676fbe2a6c7a97bbd38aaf3a (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.16
Unaffected: 0 , < 5.16 (semver)
Unaffected: 6.12.120 , ≤ 6.12.* (semver)
Unaffected: 6.18.65 , ≤ 6.18.* (semver)
Unaffected: 7.3.6 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "block/blk-mq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e40dc9c454ef3fc136e2de2e69f365cc570bd7a6",
              "status": "affected",
              "version": "3e08773c3841e9db7a520908cc2b136a77d275ff",
              "versionType": "git"
            },
            {
              "lessThan": "7394fa1f5cba107a5b921e0b359af660a212bf7f",
              "status": "affected",
              "version": "3e08773c3841e9db7a520908cc2b136a77d275ff",
              "versionType": "git"
            },
            {
              "lessThan": "f6d85fc206d58ac6d91e73e865329124ba57be60",
              "status": "affected",
              "version": "3e08773c3841e9db7a520908cc2b136a77d275ff",
              "versionType": "git"
            },
            {
              "lessThan": "24974185999fd80b676fbe2a6c7a97bbd38aaf3a",
              "status": "affected",
              "version": "3e08773c3841e9db7a520908cc2b136a77d275ff",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "block/blk-mq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.16"
            },
            {
              "lessThan": "5.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.120",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.65",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don\u0027t 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\u0027t name a poll queue."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The trigger is a local io_uring IORING_SETUP_IOPOLL O_DIRECT write (block/fops.c __blkdev_direct_IO_async, or zonefs via iomap_dio_submit_bio). iocb_bio_iopoll() -\u003e bio_poll() -\u003e blk_mq_poll() is fed bi_cookie from the host\u0027s own bio, and no network peer supplies that value.\nAC:L - placeholder\nPR:L - The io_uring IOPOLL/IOCB_HIPRI write path has no capability check. The attacker needs only write access to sequential-zone files, such as zonefs files the admin assigns through s_uid/s_perm or chown, or an ACL on a raw zoned bdev. ublk, loop and nbd have no -\u003epoll, so a user namespace cannot create a pollable queue.\nUI:N - The attacker submits the polled writes and reaps them with io_uring_enter(IORING_ENTER_GETEVENTS) on their own. Once a write is plugged, every iopoll pass calls blk_mq_poll() with cookie = nr_segs, so no other user has to act.\nS:U - The bogus hctx is used inside the kernel\u0027s own blk-mq and NVMe driver poll path. The impact stays within the host kernel\u0027s authority and crosses no hypervisor, IOMMU or sandbox boundary.\nC:H - On 7.0-7.3.5, q-\u003equeue_hw_ctx[cookie] reads past the kcalloc\u0027d pointer array at an attacker-chosen index (nr_segs, up to max_segments) into neighbouring slab objects. That sprayable pointer becomes the hctx whose driver_data nvme_poll() parses as an nvme_queue, a type confusion usable for kernel reads.\nI:H - On the forged hctx, nvme_poll() takes nvmeq-\u003ecq_poll_lock, advances cq_head/cq_phase, writel()s the doorbell through nvmeq-\u003eq_db, and completes the request it looks up by tag (end_io callbacks). A sprayed fake nvme_queue therefore gives kernel writes and a path to control-flow hijack.\nA:H - Even without a spray, the bogus hctx is dereferenced by -\u003epoll, for example hctx-\u003edriver_data in nvme_poll(). The hctx is a NULL slack slot on 7.x, or NULL from xa_load() on 5.18-6.18.64 and 6.12.y, so the result is a kernel oops the attacker can repeat at will."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:41:25.795Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e40dc9c454ef3fc136e2de2e69f365cc570bd7a6"
        },
        {
          "url": "https://git.kernel.org/stable/c/7394fa1f5cba107a5b921e0b359af660a212bf7f"
        },
        {
          "url": "https://git.kernel.org/stable/c/f6d85fc206d58ac6d91e73e865329124ba57be60"
        },
        {
          "url": "https://git.kernel.org/stable/c/24974185999fd80b676fbe2a6c7a97bbd38aaf3a"
        }
      ],
      "title": "blk-mq: don\u0027t trust the cookie in blk_mq_poll()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-139126",
    "datePublished": "2026-11-30T13:31:49.271Z",
    "dateReserved": "2026-11-30T13:22:15.915Z",
    "dateUpdated": "2026-12-01T05:41:25.795Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-139126",
      "date": "2026-12-04",
      "epss": "0.00364",
      "percentile": "0.32267"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-02T01:13:58.000Z",
      "cve": "CVE-2026-139126",
      "id": "msrc_CVE-2026-139126",
      "initial_release_date": "2026-12-02T01:12:34.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "blk-mq: don\u0027t trust the cookie in blk_mq_poll()",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-139126.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "block/blk-mq.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "e40dc9c454ef3fc136e2de2e69f365cc570bd7a6",
                    "status": "affected",
                    "version": "3e08773c3841e9db7a520908cc2b136a77d275ff",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7394fa1f5cba107a5b921e0b359af660a212bf7f",
                    "status": "affected",
                    "version": "3e08773c3841e9db7a520908cc2b136a77d275ff",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "f6d85fc206d58ac6d91e73e865329124ba57be60",
                    "status": "affected",
                    "version": "3e08773c3841e9db7a520908cc2b136a77d275ff",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "24974185999fd80b676fbe2a6c7a97bbd38aaf3a",
                    "status": "affected",
                    "version": "3e08773c3841e9db7a520908cc2b136a77d275ff",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "block/blk-mq.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.16"
                  },
                  {
                    "lessThan": "5.16",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.120",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.65",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.6",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don\u0027t 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\u0027t name a poll queue."
          }
        ],
        "id": "CVE-2026-139126",
        "lastModified": "2026-12-01T06:17:36.487",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:18:25.803",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/24974185999fd80b676fbe2a6c7a97bbd38aaf3a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7394fa1f5cba107a5b921e0b359af660a212bf7f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e40dc9c454ef3fc136e2de2e69f365cc570bd7a6"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/f6d85fc206d58ac6d91e73e865329124ba57be60"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-12-01T08:24:52+00:00",
      "cve": "CVE-2026-139126",
      "id": "CVE-2026-139126",
      "initial_release_date": "2026-11-30T13:31:49.271000+00:00",
      "product_status:known_affected": "189",
      "product_status:known_not_affected": "91",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via out-of-bounds read in blk-mq polling",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-139126.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.