CVE-2026-139125: blk-mq: keep sharing tags fairly after a queue update
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: keep sharing tags fairly after a queue update
A hctx only gets BLKMQFTAGQUEUESHARED from blkmqaddqueuetagset(). The hctxs blkmqupdatenrhwqueues() allocates for queues that joined long ago never get it, so they aren't counted in activequeues and hctxmayqueue() lets them take all the tags. One NVMe namespace can starve the others after the first update.
Set the flag on the new hctxs.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Configuration
Set BLK_MQ_F_TAG_QUEUE_SHARED on the new hctxs allocated during blk_mq_update_nr_hw_queues().
Linux blk-mq BLK_MQ_F_TAG_QUEUE_SHARED = set on new hctxs
Event History
Frequently Asked Questions
What is the practical impact on affected systems?
After a hardware-queue update, one NVMe namespace may consume all available shared tags and starve other namespaces. This can cause unfair I/O scheduling between namespaces sharing the tag set.
What condition is required for the issue to occur?
The affected queues must use shared tags, and blk_mq_update_nr_hw_queues() must allocate new hardware contexts for a queue that joined the tag set earlier. The newly allocated contexts lack the shared-tag flag and are omitted from active queue accounting.
How can I tell whether a system is exhibiting this issue?
A symptom is that, following a queue update, one NVMe namespace can monopolize tags while other namespaces sharing the tag set experience I/O starvation. The provided data does not specify a log message, configuration check, or diagnostic command for confirming exposure.
What should be done if this is observed?
Apply a Linux kernel update containing the fix that sets the shared-tag flag on newly allocated hardware contexts. The provided information does not identify an alternative mitigation when updating is not immediately possible.