{"id":"CVE-2022-49377","summary":"blk-mq: don't touch -\u003etagset in blk_mq_get_sq_hctx","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: don't touch -\u003etagset 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 -\u003etagset 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.","modified":"2026-04-02T08:27:31.764159Z","published":"2025-02-26T02:11:16.607Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49377.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d05426e2d5fd7df8afc866b78c36b37b00188b7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70fdd922c7bf8949f8df109cf2635dff64c90392"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b140bac470b4f707cda59c7266214246238661df"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49377.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49377"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b6e68ee82585f2ee890b0a897a6aacbf49a467bb"},{"fixed":"460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff"},{"fixed":"b140bac470b4f707cda59c7266214246238661df"},{"fixed":"70fdd922c7bf8949f8df109cf2635dff64c90392"},{"fixed":"5d05426e2d5fd7df8afc866b78c36b37b00188b7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49377.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}