CVE-2026-139120: blk-mq: set up a queue under tag_list_lock
Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-30
Description
In the Linux kernel, the following vulnerability has been resolved: blk-mq: set up a queue under tag_list_lock blk_mq_init_allocated_queue() only takes tag_list_lock at the end, when it adds the queue to the set. Before that it sizes the queue by set->nr_hw_queues, hands out set->tags[], maps by set->map[], and blk_mq_map_swqueue() frees tags of the set. An update clearing the maps at that time makes the new queue free tags that all the other queues share. An NVMe controller reset during a namespace scan does exactly that. Take the lock before the first look at the set. An update can be part of error handling, so the allocations under the lock must not wait for IO: memalloc_noio_save(), as in add_disk_fwnode().
Enclave's analysis
This is a race in the Linux kernel's blk-mq code: a new request queue gets sized and handed tags before the lock that protects the shared tag set is taken, so a concurrent update (like an NVMe controller reset happening during a namespace scan) can free tags other queues are still using. The headline scenario needs a host actively connected as an NVMe-over-TCP initiator to a hostile or on-path target that times its replies to win the race. No public exploit or in-the-wild activity has been reported; the fix already shipped in 6.18.65, 7.3.6 and 7.4-rc1, so patch or avoid untrusted NVMe/TCP targets until you do.
Fix
Upgrade Linux kernel to 6.18.65 / 7.3.6 / 7.4-rc1. No fixed version is listed for Linux; follow the vendor advisory.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| Linux | 868f2f0b72068a097508b6e8870a8950fd8eb7ef before e7e089b61901be0f4bac6b1d8c8f8e25cf178280 | Not listed |
| Linux | 868f2f0b72068a097508b6e8870a8950fd8eb7ef before 515e211124113b4faecf3b0cb20087965286ee0c | Not listed |
| Linux | 868f2f0b72068a097508b6e8870a8950fd8eb7ef before 4fcc499ea9bc31b02393904a1903e794d146f5f7 | Not listed |
| Linux | 4.6 | Not listed |
| Linux kernel | >=4.6, <6.18.65 (LTS) / >=6.19, <7.3.6 (stable) / < 7.4-rc1 (mainline) | 6.18.65 / 7.3.6 / 7.4-rc1 |