CVE-2021-47412
published high CVSS 3.1 · 7.8block: don't call rq_qos_ops->done_bio if the bio isn't tracked
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578 to < db60edbfff332a6a5477c367af8125f034570989 · 67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578 to < 004b8f8a691205a93d9e80d98b786b2b97424d6e · 67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578 to < a647a524a46736786c95cdb553a070322ca096e3 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.19 (affected) · 0 to < 4.19 (unaffected · semver) · 5.10.241 through 5.10.* (unaffected · semver) · 5.14.11 through 5.14.* (unaffected · semver) · 5.15 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2025-104 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| Debian | bullseye | linux | Advisory build | 5.10.244-1 | DLA-4327-1 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-kvm | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-kvm | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-corex86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-cross-headersaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-cross-headersx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debugx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debug-corex86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debug-develx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debug-modulesx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-debug-modules-extrax86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-develx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-docx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-headersaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-headersx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-modulesx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-modules-extrax86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-toolsaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-toolsx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-tools-libsaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-tools-libsx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-tools-libs-develaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | kernel-tools-libs-develx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | perfaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | perfx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | python3-perfaarch64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Oracle Linux | 8 | python3-perfx86_64 | Advisory build | 0:4.18.0-553.22.1.el8_10 | ELSA-2024-7000 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-abi-stablelistsnoarch | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-coreaarch64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-coreppc64le | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-cores390x | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-corex86_64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugaarch64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugppc64le | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugs390x | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugx86_64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-coreaarch64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-coreppc64le | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-cores390x | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-corex86_64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfoaarch64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfoppc64le | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfos390x | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfox86_64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develaarch64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develppc64le | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-devels390x | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develx86_64 | Advisory build | 4.18.0-553.22.1.el8_10 | RHSA-2024:7000 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: block: don't call rq_qos_ops->done_bio if the bio isn't tracked rq_qos framework is only applied on request based driver, so: 1) rq_qos_done_bio() needn't to be called for bio based driver 2) rq_qos_done_bio() needn't to be called for bio which isn't tracked, such as bios ended from error handling code. Especially in bio_endio(): 1) request queue is referred via bio->bi_bdev->bd_disk->queue, which may be gone since request queue refcount may not be held in above two cases 2) q->rq_qos may be freed in blk_cleanup_queue() when calling into __rq_qos_done_bio() Fix the potential kernel panic by not calling rq_qos_ops->done_bio if the bio isn't tracked. This way is safe because both ioc_rqos_done_bio() and blkcg_iolatency_done_bio() are nop if the bio isn't tracked.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is in block-layer bio_endio()/rq_qos_done_bio(), reached by local I/O submission (syscalls to a block device or filesystem on it) racing device/queue teardown, not by parsing remote protocol packets. AC:L - An attacker who can issue concurrent I/O and induce queue teardown (e.g. write to removable/loop/NBD media then eject/disconnect) controls both sides of the race; rq_qos_done_bio() has no lock versus rq_qos_exit(), so the UAF is reliably triggerable. PR:L - Unprivileged local users can write to user-accessible block devices (removable media, permitted loop/NBD nodes) and trigger teardown via eject/unmount paths available to the mounting user; root in the init namespace is not required. UI:N - The attacker performs the I/O and device teardown/eject themselves; no separate victim action is required. S:U - Impact is confined to the host kernel (UAF/panic or local privilege escalation) and does not cross a VM, IOMMU, or other security authority boundary. C:H - rq_qos_exit() frees rq_qos objects while bio_endio() may still load q->rq_qos and walk rqos->ops/next on reallocated slab memory, giving an attacker-controlled UAF read primitive. I:H - __rq_qos_done_bio() invokes rqos->ops->done_bio on the freed object, so heap reuse can hijack the function pointer for arbitrary write / control-flow hijacking, not merely a crash. A:H - The same UAF produces kernel oops/panic when done_bio runs against freed rq_qos or a freed request_queue, fully impacting availability.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578 to < db60edbfff332a6a5477c367af8125f034570989 (affected · git)67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578 to < 004b8f8a691205a93d9e80d98b786b2b97424d6e (affected · git)67b42d0bf7a8fd1ec0cf1acdc9550e688d7c8578 to < a647a524a46736786c95cdb553a070322ca096e3 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.19 (affected)0 to < 4.19 (unaffected · semver)5.10.241 through 5.10.* (unaffected · semver)5.14.11 through 5.14.* (unaffected · semver)5.15 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
3Linux · cna
block: don't call rq_qos_ops->done_bio if the bio isn't tracked
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c6bff877c9175131930be8b6797729fb6854ccc5a97cee7bbefc5c76b49c3596
- Ingested
- 23 Sep 2026, 07:57:11 UTC
- Source record
- Official CVE record