{"id":"CVE-2026-139120","state":"PUBLISHED","title":"blk-mq: set up a queue under tag_list_lock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: set up a queue under tag_list_lock\n\nblk_mq_init_allocated_queue() only takes tag_list_lock at the end, when\nit adds the queue to the set. Before that it sizes the queue by\nset->nr_hw_queues, hands out set->tags[], maps by set->map[], and\nblk_mq_map_swqueue() frees tags of the set. An update clearing the maps\nat that time makes the new queue free tags that all the other queues\nshare. An NVMe controller reset during a namespace scan does exactly\nthat.\n\nTake the lock before the first look at the set. An update can be part of\nerror handling, so the allocations under the lock must not wait for IO:\nmemalloc_noio_save(), as in add_disk_fwnode().","publishedAt":"2026-11-30T13:31:46.018Z","updatedAt":"2026-11-30T13:31:46.018Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"868f2f0b72068a097508b6e8870a8950fd8eb7ef","status":"affected","lessThan":"e7e089b61901be0f4bac6b1d8c8f8e25cf178280","versionType":"git"},{"version":"868f2f0b72068a097508b6e8870a8950fd8eb7ef","status":"affected","lessThan":"515e211124113b4faecf3b0cb20087965286ee0c","versionType":"git"},{"version":"868f2f0b72068a097508b6e8870a8950fd8eb7ef","status":"affected","lessThan":"4fcc499ea9bc31b02393904a1903e794d146f5f7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-mq.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.6","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-mq.c"]}],"references":["https://git.kernel.org/stable/c/e7e089b61901be0f4bac6b1d8c8f8e25cf178280","https://git.kernel.org/stable/c/515e211124113b4faecf3b0cb20087965286ee0c","https://git.kernel.org/stable/c/4fcc499ea9bc31b02393904a1903e794d146f5f7"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139120.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139120","state":"PUBLISHED","datePublished":"2026-11-30T13:31:46.018Z","dateUpdated":"2026-11-30T13:31:46.018Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.915Z"},"containers":{"cna":{"title":"blk-mq: set up a queue under tag_list_lock","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: set up a queue under tag_list_lock\n\nblk_mq_init_allocated_queue() only takes tag_list_lock at the end, when\nit adds the queue to the set. Before that it sizes the queue by\nset->nr_hw_queues, hands out set->tags[], maps by set->map[], and\nblk_mq_map_swqueue() frees tags of the set. An update clearing the maps\nat that time makes the new queue free tags that all the other queues\nshare. An NVMe controller reset during a namespace scan does exactly\nthat.\n\nTake the lock before the first look at the set. An update can be part of\nerror handling, so the allocations under the lock must not wait for IO:\nmemalloc_noio_save(), as in add_disk_fwnode()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"868f2f0b72068a097508b6e8870a8950fd8eb7ef","status":"affected","lessThan":"e7e089b61901be0f4bac6b1d8c8f8e25cf178280","versionType":"git"},{"version":"868f2f0b72068a097508b6e8870a8950fd8eb7ef","status":"affected","lessThan":"515e211124113b4faecf3b0cb20087965286ee0c","versionType":"git"},{"version":"868f2f0b72068a097508b6e8870a8950fd8eb7ef","status":"affected","lessThan":"4fcc499ea9bc31b02393904a1903e794d146f5f7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-mq.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.6","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-mq.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e7e089b61901be0f4bac6b1d8c8f8e25cf178280"},{"url":"https://git.kernel.org/stable/c/515e211124113b4faecf3b0cb20087965286ee0c"},{"url":"https://git.kernel.org/stable/c/4fcc499ea9bc31b02393904a1903e794d146f5f7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:46.018Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}