{"id":"CVE-2022-48846","summary":"block: release rq qos structures for queue without disk","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: release rq qos structures for queue without disk\n\nblkcg_init_queue() may add rq qos structures to request queue, previously\nblk_cleanup_queue() calls rq_qos_exit() to release them, but commit\n8e141f9eb803 (\"block: drain file system I/O on del_gendisk\")\nmoves rq_qos_exit() into del_gendisk(), so memory leak is caused\nbecause queues may not have disk, such as un-present scsi luns, nvme\nadmin queue, ...\n\nFixes the issue by adding rq_qos_exit() to blk_cleanup_queue() back.\n\nBTW, v5.18 won't need this patch any more since we move\nblkcg_init_queue()/blkcg_exit_queue() into disk allocation/release\nhandler, and patches have been in for-5.18/block.","modified":"2026-03-20T12:21:55.959155Z","published":"2024-07-16T12:25:15.140Z","related":["SUSE-SU-2024:2894-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2947-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48846.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/60c2c8e2ef3a3ec79de8cbc80a06ca0c21df8c29"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4ad8736ac982111bb0be8306bf19c8207f6600e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/daaca3522a8e67c46e39ef09c1d542e866f85f3b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48846.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48846"},{"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":"8e141f9eb803e209714a80aa6ec073893f94c526"},{"fixed":"d4ad8736ac982111bb0be8306bf19c8207f6600e"},{"fixed":"60c2c8e2ef3a3ec79de8cbc80a06ca0c21df8c29"},{"fixed":"daaca3522a8e67c46e39ef09c1d542e866f85f3b"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48846.json"}}],"schema_version":"1.7.5"}