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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux3e08773c3841e9db7a520908cc2b136a77d275ff to before e40dc9c454ef3fc136e2de2e69f365cc570bd7a6 Affected3e08773c3841e9db7a520908cc2b136a77d275ff to before 7394fa1f5cba107a5b921e0b359af660a212bf7f Affected3e08773c3841e9db7a520908cc2b136a77d275ff to before f6d85fc206d58ac6d91e73e865329124ba57be60 Affected3e08773c3841e9db7a520908cc2b136a77d275ff to before 24974185999fd80b676fbe2a6c7a97bbd38aaf3a Affected
Linux Linux5.16 Affectedbefore 5.16 Not Affected6.12.120 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.