{"id":"CVE-2021-47412","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: don't call rq_qos_ops-\u003edone_bio if the bio isn't tracked\n\nrq_qos framework is only applied on request based driver, so:\n\n1) rq_qos_done_bio() needn't to be called for bio based driver\n\n2) rq_qos_done_bio() needn't to be called for bio which isn't tracked,\nsuch as bios ended from error handling code.\n\nEspecially in bio_endio():\n\n1) request queue is referred via bio-\u003ebi_bdev-\u003ebd_disk-\u003equeue, which\nmay be gone since request queue refcount may not be held in above two\ncases\n\n2) q-\u003erq_qos may be freed in blk_cleanup_queue() when calling into\n__rq_qos_done_bio()\n\nFix the potential kernel panic by not calling rq_qos_ops-\u003edone_bio if\nthe bio isn't tracked. This way is safe because both ioc_rqos_done_bio()\nand blkcg_iolatency_done_bio() are nop if the bio isn't tracked.","modified":"2026-03-13T05:20:44.424454Z","published":"2024-05-21T15:15:26.700Z","related":["ALSA-2024:7000","ALSA-2024:7001","SUSE-SU-2024:2008-1","SUSE-SU-2024:2011-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2189-1","SUSE-SU-2024:2190-1"],"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"FIX","url":"https://git.kernel.org/stable/c/004b8f8a691205a93d9e80d98b786b2b97424d6e"},{"type":"FIX","url":"https://git.kernel.org/stable/c/a647a524a46736786c95cdb553a070322ca096e3"},{"type":"FIX","url":"https://git.kernel.org/stable/c/db60edbfff332a6a5477c367af8125f034570989"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47412.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"5.10.241"}]},{"events":[{"introduced":"5.11"},{"fixed":"5.14.11"}]},{"events":[{"introduced":"0"},{"last_affected":"5.15-rc1"}]},{"events":[{"introduced":"0"},{"last_affected":"5.15-rc2"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}