# CVE-2026-139126: blk-mq: don't trust the cookie in blk_mq_poll()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-11-30T13:31:49.271Z
- Modified: 2026-12-01T06:17:36.487Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3e08773c3841e9db7a520908cc2b136a77d275ff before e40dc9c454ef3fc136e2de2e69f365cc570bd7a6; from 3e08773c3841e9db7a520908cc2b136a77d275ff before 7394fa1f5cba107a5b921e0b359af660a212bf7f; from 3e08773c3841e9db7a520908cc2b136a77d275ff before f6d85fc206d58ac6d91e73e865329124ba57be60; from 3e08773c3841e9db7a520908cc2b136a77d275ff before 24974185999fd80b676fbe2a6c7a97bbd38aaf3a; 5.16 (not affected: before 5.16; from 6.12.120 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/e40dc9c454ef3fc136e2de2e69f365cc570bd7a6>
- <https://git.kernel.org/stable/c/7394fa1f5cba107a5b921e0b359af660a212bf7f>
- <https://git.kernel.org/stable/c/f6d85fc206d58ac6d91e73e865329124ba57be60>
- <https://git.kernel.org/stable/c/24974185999fd80b676fbe2a6c7a97bbd38aaf3a>

## Sources

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

---

Page: https://cve.day/CVE-2026-139126 · Whole record: https://cve.day/CVE-2026-139126.json · Rebuilt by cve.day 2026-12-01T06:32:24.317Z
