CVE-2021-47060 json
KVM: Stop looking for coalesced MMIO zones if the bus is destroyed
published 2024-02-29 2 y ago modified 2026-08-05 3 mo ago also EUVD-2021-33708
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
KVM: Stop looking for coalesced MMIO zones if the bus is destroyed
Abort the walk of coalesced MMIO zones if kvm_io_bus_unregister_dev() fails to allocate memory for the new instance of the bus. If it can't instantiate a new bus, unregister_dev() destroys all devices _except_ the target device. But, it doesn't tell the caller that it obliterated the bus and invoked the destructor for all devices that were on the bus. In the coalesced MMIO case, this can result in a deleted list entry dereference due to attempting to continue iterating on coalesced_zones after future entries (in the walk) have been deleted.
Opportunistically add curly braces to the for-loop, which encompasses many lines but sneaks by without braces due to the guts being a single if statement.
Patch / fix
- Linux Linux 4.5, 4.10, 4.15, 4.20, 5.4.119, 5.9, 5.10.37, 5.11.21, 5.12.4, 5.13
- linux Debian 14, Debian 13, Debian 12 5.10.38-1
debian advisories DEBIAN-CVE-2021-47060
- linux Ubuntu 20.04 LTS 5.4.0-77.86
- linux-aws Ubuntu 20.04 LTS 5.4.0-1051.53
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1046.49
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1041.42
- linux-azure Ubuntu 20.04 LTS 5.4.0-1051.53
- linux-gkeop Ubuntu 20.04 LTS 5.4.0-1018.19
- linux-raspi Ubuntu 20.04 LTS 5.4.0-1038.41
- linux-oracle Ubuntu 20.04 LTS 5.4.0-1048.52
ubuntu advisories UBUNTU-CVE-2021-47060
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-syms SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.216.1
- kernel-source SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-122.216.1
- kernel-default SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +2 more 4.12.14-122.216.1
- kernel-obs-build SLE Software Development Kit 12 SP5 4.12.14-122.216.1
- kernel-rt SLE Real Time 12 SP5 4.12.14-10.182.1
- kernel-syms-rt SLE Real Time 12 SP5 4.12.14-10.182.1
- kernel-rt_debug SLE Real Time 12 SP5 4.12.14-10.182.1
- kernel-source-rt SLE Real Time 12 SP5 4.12.14-10.182.1
suse advisories SUSE-SU-2024:1870-1SUSE-SU-2024:1646-1SUSE-SU-2024:1643-1SUSE-SU-2024:0926-1SUSE-SU-2024:0857-1SUSE-SU-2024:0856-1
- git.kernel.org/stable/c/7d1bc32d6477ff96a32695ea4be8144e4513ab2d commit
- git.kernel.org/stable/c/2a20592baff59c5351c5200ec667e1a2aa22af85 commit
- git.kernel.org/stable/c/168e82f640ed1891a700bdb43e37da354b2ab63c commit
- git.kernel.org/stable/c/50cbad42bfea8c052b7ca590bd4126cdc898713c commit
- git.kernel.org/stable/c/5d3c4c79384af06e3c8e25b7770b6247496b4417 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-47060 updated cvss 6.7
kernel: KVM: use-after-free while looking for coalesced MMIO zones if the bus is destroyed
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 3.1 | 6.0 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H |
| CNA | 3.1 | 6.0 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/7d1bc32d6477ff96a32695ea4be8144e4513ab2d
patch
-
git.kernel.org
/stable/c/2a20592baff59c5351c5200ec667e1a2aa22af85
patch
-
git.kernel.org
/stable/c/168e82f640ed1891a700bdb43e37da354b2ab63c
patch
-
git.kernel.org
/stable/c/50cbad42bfea8c052b7ca590bd4126cdc898713c
patch
-
git.kernel.org
/stable/c/5d3c4c79384af06e3c8e25b7770b6247496b4417
patch
Sources
- CVE List CVE-2021-47060
- NVD CVE-2021-47060
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.