# CVE-2026-139120: blk-mq: set up a queue under tag_list_lock

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.22%, higher than 69% of CVEs (2026-12-01)
- Published: 2026-11-30T13:31:46.018Z
- Modified: 2026-12-01T06:17:35.810Z
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 868f2f0b72068a097508b6e8870a8950fd8eb7ef before e7e089b61901be0f4bac6b1d8c8f8e25cf178280; from 868f2f0b72068a097508b6e8870a8950fd8eb7ef before 515e211124113b4faecf3b0cb20087965286ee0c; from 868f2f0b72068a097508b6e8870a8950fd8eb7ef before 4fcc499ea9bc31b02393904a1903e794d146f5f7; 4.6 (not affected: before 4.6; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/e7e089b61901be0f4bac6b1d8c8f8e25cf178280>
- <https://git.kernel.org/stable/c/515e211124113b4faecf3b0cb20087965286ee0c>
- <https://git.kernel.org/stable/c/4fcc499ea9bc31b02393904a1903e794d146f5f7>

## Sources

- CVE List: [CVE-2026-139120](https://www.cve.org/CVERecord?id=CVE-2026-139120), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139120](https://nvd.nist.gov/vuln/detail/CVE-2026-139120), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139120 · Whole record: https://cve.day/CVE-2026-139120.json · Rebuilt by cve.day 2026-12-01T06:32:16.919Z
