CVE-2026-139122: blk-mq: quiesce a queue that joins a quiesced tag set
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: quiesce a queue that joins a quiesced tag set
blkmqquiescetagset() only quiesces the queues on the list at that moment. A queue added before blkmqunquiescetagset() runs unquiesced, and then gets unquiesced without ever having been quiesced, which trips the warning in blkmqunquiescequeue(). NVMe gets there when a controller fails while its namespaces are being scanned.
Count the quiesce calls in the tag set and quiesce a joining queue that many times, under a spinlock that also serializes the two functions. It can't be taglistlock, see commit 59e25ef2b413.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Track the number of quiesce calls in the tag set under the spinlock that serializes quiescing and unquiescing, and quiesce any queue that joins a quiesced tag set.
Event History
Frequently Asked Questions
Under what conditions can this issue occur?
It can occur when a block queue joins a tag set after blk_mq_quiesce_tagset() has started but before blk_mq_unquiesce_tagset() runs. The described NVMe path is a controller failure occurring while its namespaces are being scanned.
What is the observable symptom of the issue?
A joining queue may be unquiesced despite never having been quiesced, triggering a warning in blk_mq_unquiesce_queue().
What does the fix change?
The fix counts tag-set quiesce calls and applies the same number of quiesce operations to queues that join while the tag set is quiesced. It also serializes queue joining and tag-set quiesce/unquiesce operations with a spinlock.