{"id":"CVE-2022-49377","state":"PUBLISHED","title":"blk-mq: don't touch ->tagset in blk_mq_get_sq_hctx","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don't touch ->tagset in blk_mq_get_sq_hctx\n\nblk_mq_run_hw_queues() could be run when there isn't queued request and\nafter queue is cleaned up, at that time tagset is freed, because tagset\nlifetime is covered by driver, and often freed after blk_cleanup_queue()\nreturns.\n\nSo don't touch ->tagset for figuring out current default hctx by the mapping\nbuilt in request queue, so use-after-free on tagset can be avoided. Meantime\nthis way should be fast than retrieving mapping from tagset.","publishedAt":"2025-02-26T02:11:16.607Z","updatedAt":"2026-08-05T08:54:57.701Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb","status":"affected","lessThan":"460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff","versionType":"git"},{"version":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb","status":"affected","lessThan":"b140bac470b4f707cda59c7266214246238661df","versionType":"git"},{"version":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb","status":"affected","lessThan":"70fdd922c7bf8949f8df109cf2635dff64c90392","versionType":"git"},{"version":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb","status":"affected","lessThan":"5d05426e2d5fd7df8afc866b78c36b37b00188b7","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":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"5.15.47","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.15","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.4","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","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/460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff","https://git.kernel.org/stable/c/b140bac470b4f707cda59c7266214246238661df","https://git.kernel.org/stable/c/70fdd922c7bf8949f8df109cf2635dff64c90392","https://git.kernel.org/stable/c/5d05426e2d5fd7df8afc866b78c36b37b00188b7"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49377.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49377","state":"PUBLISHED","datePublished":"2025-02-26T02:11:16.607Z","dateUpdated":"2026-08-05T08:54:57.701Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:08:31.558Z"},"containers":{"cna":{"title":"blk-mq: don't touch ->tagset in blk_mq_get_sq_hctx","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don't touch ->tagset in blk_mq_get_sq_hctx\n\nblk_mq_run_hw_queues() could be run when there isn't queued request and\nafter queue is cleaned up, at that time tagset is freed, because tagset\nlifetime is covered by driver, and often freed after blk_cleanup_queue()\nreturns.\n\nSo don't touch ->tagset for figuring out current default hctx by the mapping\nbuilt in request queue, so use-after-free on tagset can be avoided. Meantime\nthis way should be fast than retrieving mapping from tagset."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb","status":"affected","lessThan":"460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff","versionType":"git"},{"version":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb","status":"affected","lessThan":"b140bac470b4f707cda59c7266214246238661df","versionType":"git"},{"version":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb","status":"affected","lessThan":"70fdd922c7bf8949f8df109cf2635dff64c90392","versionType":"git"},{"version":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb","status":"affected","lessThan":"5d05426e2d5fd7df8afc866b78c36b37b00188b7","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":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"5.15.47","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.15","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.4","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","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/460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff"},{"url":"https://git.kernel.org/stable/c/b140bac470b4f707cda59c7266214246238661df"},{"url":"https://git.kernel.org/stable/c/70fdd922c7bf8949f8df109cf2635dff64c90392"},{"url":"https://git.kernel.org/stable/c/5d05426e2d5fd7df8afc866b78c36b37b00188b7"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is in blk-mq core and is reached via local block-layer paths (device teardown/hot-remove, I/O completion kicking queues), not by processing remote network packets.\nAC:L - An attacker can drive both sides of the race by generating concurrent I/O/queue-run activity while triggering device removal or cleanup, so success does not depend on conditions outside their control.\nPR:L - A basic local user can reach the path via hot-removable block devices they are allowed to use (e.g., USB mass-storage eject/power-off while I/O is in flight); CAP_SYS_ADMIN in the init namespace is not required.\nUI:N - Exploitation does not require a separate victim action; the attacker initiates I/O and device teardown themselves.\nS:U - This is a same-host kernel memory-safety issue (privilege escalation/DoS within the kernel authority), not a scope-changing escape such as guest-to-host or IOMMU bypass.\nC:H - Use-after-free of the driver tagset (including map pointers consulted during hctx lookup) can be turned into an arbitrary read primitive via heap reuse of the freed object.\nI:H - The same UAF enables heap spraying and corruption of reclaimable tagset/map state, which is sufficient for arbitrary write or control-flow hijacking in the kernel.\nA:H - Triggering the dangling tagset access can cause kernel oops/panic even without full exploitation, so availability impact is high."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:54:57.701Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.15.47"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.17.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.18.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-49377","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-02-27T18:16:30.402440Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-27T18:22:33.551Z"}}]}}}