CVE-2021-47061

KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing SRCU

7.8 high EPSS 0.24%

Published 29 Feb 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2021-47061

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47061 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: Destroy I/O bus devices on unregister failure _after_ sync'ing SRCU

If allocating a new instance of an I/O bus fails when unregistering a device, wait to destroy the device until after all readers are guaranteed to see the new null bus. Destroying devices before the bus is nullified could lead to use-after-free since readers expect the devices on their reference of the bus to remain valid.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.5% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 8 Aug 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from f65886606c2d3b562716de030706dfe1bea4ed5e, before 03c6cccedd3913006744faa252a4da5145299343
affected from f65886606c2d3b562716de030706dfe1bea4ed5e, before 4e899ca848636b37e9ac124bc1723862a7d7d927
affected from f65886606c2d3b562716de030706dfe1bea4ed5e, before 30f46c6993731efb2a690c9197c0fd9ed425da2d
affected from f65886606c2d3b562716de030706dfe1bea4ed5e, before 2ee3757424be7c1cd1d0bbfa6db29a7edd82a250
affected f0dfffce3f4ffd5f822568a4a6fb34c010e939d1
affected 840e124f89a5127e7eb97ebf377f4b8ca745c070
affected 40a023f681befd9b2862a3c16fb306a38b359ae5
affected 19184bd06f488af62924ff1747614a8cb284ad63
affected 41b2ea7a6a11e2b1a7f2c29e1675a709a6b2b98d
affected 68c125324b5e1d1d22805653735442923d896a1d
affected from 4.4.238, before 4.5
affected from 4.9.238, before 4.10
affected from 4.14.200, before 4.15
affected from 4.19.148, before 4.20
affected from 5.4.66, before 5.5
affected from 5.8.10, before 5.9
Other versions: unaffected
Linux
affected 5.9
unaffected before 5.9
unaffected from 5.10.37 up to and including 5.10.*
unaffected from 5.11.21 up to and including 5.11.*
unaffected from 5.12.4 up to and including 5.12.*
unaffected 5.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47061 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47061

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47061
trivy image --scanners vuln IMAGE | grep CVE-2021-47061

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47061 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.