AZL-116902: CVE-2026-139126 affecting package kernel 6.6.161.1-1
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In blk_mq_poll(), ignore cookies that are out of range or do not name a poll queue before using them to index queue_hw_ctx[].
Event History
Frequently Asked Questions
Which systems should be prioritized for review?
Systems running the Azure Linux kernel package version 6.6.161.1-1 should be reviewed, as this is the package version identified as affected.
What I/O conditions can trigger the out-of-bounds access?
The issue can occur when a plugged polled write has more segments than there are hardware queues. It can also involve a cookie from a bio reused for another device matching the wrong queue array.
What validation does the resolved code add?
The resolved code ignores a cookie when it is outside the valid hardware-queue range or when it does not identify a poll queue.