{"id":"CVE-2026-139118","state":"PUBLISHED","title":"blk-mq: free the bitmaps of tags in the SRCU callback","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: free the bitmaps of tags in the SRCU callback\n\nCommit ad0d05dbddc1 keeps struct blk_mq_tags and the requests until the\niterators under tags_srcu are gone, but the two bitmaps they walk are\nstill freed right away. When the number of hardware queues shrinks,\nblk_mq_tagset_busy_iter() may be about to walk tags that\n__blk_mq_update_nr_hw_queues() frees. sbitmap_free() clears the map\npointer, so that's a NULL dereference or a use-after-free, depending on\nthe timing.\n\nFree the bitmaps with the rest in the callback.","publishedAt":"2026-11-30T13:31:44.894Z","updatedAt":"2026-11-30T13:31:44.894Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ad0d05dbddc1bf86e92220fea873176de6b12f78","status":"affected","lessThan":"0c7429cb66aea8c37dd5200721910fd39327f26a","versionType":"git"},{"version":"ad0d05dbddc1bf86e92220fea873176de6b12f78","status":"affected","lessThan":"ef9cac5ed4c982ac2f9983de6f1d25b391a8ae19","versionType":"git"},{"version":"ad0d05dbddc1bf86e92220fea873176de6b12f78","status":"affected","lessThan":"10b249e9b05eed0c4c65b9b89dfc2cf33d68d19a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-mq-tag.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","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-tag.c"]}],"references":["https://git.kernel.org/stable/c/0c7429cb66aea8c37dd5200721910fd39327f26a","https://git.kernel.org/stable/c/ef9cac5ed4c982ac2f9983de6f1d25b391a8ae19","https://git.kernel.org/stable/c/10b249e9b05eed0c4c65b9b89dfc2cf33d68d19a"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139118.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139118","state":"PUBLISHED","datePublished":"2026-11-30T13:31:44.894Z","dateUpdated":"2026-11-30T13:31:44.894Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.915Z"},"containers":{"cna":{"title":"blk-mq: free the bitmaps of tags in the SRCU callback","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: free the bitmaps of tags in the SRCU callback\n\nCommit ad0d05dbddc1 keeps struct blk_mq_tags and the requests until the\niterators under tags_srcu are gone, but the two bitmaps they walk are\nstill freed right away. When the number of hardware queues shrinks,\nblk_mq_tagset_busy_iter() may be about to walk tags that\n__blk_mq_update_nr_hw_queues() frees. sbitmap_free() clears the map\npointer, so that's a NULL dereference or a use-after-free, depending on\nthe timing.\n\nFree the bitmaps with the rest in the callback."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ad0d05dbddc1bf86e92220fea873176de6b12f78","status":"affected","lessThan":"0c7429cb66aea8c37dd5200721910fd39327f26a","versionType":"git"},{"version":"ad0d05dbddc1bf86e92220fea873176de6b12f78","status":"affected","lessThan":"ef9cac5ed4c982ac2f9983de6f1d25b391a8ae19","versionType":"git"},{"version":"ad0d05dbddc1bf86e92220fea873176de6b12f78","status":"affected","lessThan":"10b249e9b05eed0c4c65b9b89dfc2cf33d68d19a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-mq-tag.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","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-tag.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0c7429cb66aea8c37dd5200721910fd39327f26a"},{"url":"https://git.kernel.org/stable/c/ef9cac5ed4c982ac2f9983de6f1d25b391a8ae19"},{"url":"https://git.kernel.org/stable/c/10b249e9b05eed0c4c65b9b89dfc2cf33d68d19a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:44.894Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}