{"id":"CVE-2021-47412","published":"2024-05-21T15:04:03Z","modified":"2026-08-05T08:47:43Z","title":"block: don't call rq_qos_ops->done_bio if the bio isn't tracked","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: don't call rq_qos_ops->done_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->bi_bdev->bd_disk->queue, which\nmay be gone since request queue refcount may not be held in above two\ncases\n\n2) q->rq_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->done_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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00233,"percentile":0.14498,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/db60edbfff332a6a5477c367af8125f034570989","tags":[]},{"url":"https://git.kernel.org/stable/c/004b8f8a691205a93d9e80d98b786b2b97424d6e","tags":[]},{"url":"https://git.kernel.org/stable/c/a647a524a46736786c95cdb553a070322ca096e3","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":2.9},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578, < db60edbfff332a6a5477c367af8125f034570989",">= 67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578, < 004b8f8a691205a93d9e80d98b786b2b97424d6e",">= 67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578, < a647a524a46736786c95cdb553a070322ca096e3"]},{"vendor":"Linux","product":"Linux","versions":["4.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-11T17:28:47.066559Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34417","exploited":false,"provenance":"source"}}