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

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

blk-mq: don't trust the cookie in blkmqpoll()

blkmqpoll() indexes queuehwctx[] with bio->bicookie unchecked. Zone write plugging keeps the segment count of a plugged write in binrsegments, which shares a union with the cookie, and clears REQPOLLED, but biopoll() 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 SLABTYPESAFEBYRCU, 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.

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.16.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux*
debian/linux<7.3.6-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  5. Compensating control

    In blk_mq_poll(), ignore cookies that are out of range or do not identify a poll queue before indexing queue_hw_ctx[].

Event History

Nov 30, 2026
CVE Published
via MITRE·01:31 PM
Data Sourced
via MITRE·01:31 PM
Description
Data Sourced
via OSV·01:31 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

What conditions are needed to trigger the out-of-bounds access?

A polled write must remain plugged and have more segments than the target device has hardware queues. In that state, the segment count can be interpreted as a polling cookie and used as an unchecked index into the hardware-queue array.

2

Can reused bios cause this issue across devices?

Yes. Because bios are allocated with SLAB_TYPESAFE_BY_RCU, a cookie from a bio reused for another device can be interpreted against the wrong device's hardware-queue array.

3

What validation does the fix add?

The fix ignores cookies that are outside the hardware-queue array range or that do not identify a polling queue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203