Host disruption via duplicate KVM device destruction
Published May 21, 2024 · Updated Aug 5, 2026
Use-after-free in Linux KVM coalesced MMIO allows local users to read freed kernel memory and crash the host through VM ioctls. When bus unregistration returns an error, kvm_io_bus_unregister_dev() already destroys the target, but the caller invokes its destructor again and dereferences the freed device. Access to a KVM VM file descriptor and a registered coalesced-MMIO zone is required; the demonstrated consequence is an invalid kernel-memory read detected by KASAN.
Summary
What happened
Use-after-free in Linux KVM coalesced MMIO allows local users to read freed kernel memory and crash the host through VM ioctls. When bus unregistration returns an error, kvm_io_bus_unregister_dev() already destroys the target, but the caller invokes its destructor again and dereferences the freed device. Access to a KVM VM file descriptor and a registered coalesced-MMIO zone is required; the demonstrated consequence is an invalid kernel-memory read detected by KASAN.
The record
- CVE
- CVE-2021-47341
- Published
- May 21, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 21, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=168e82f640ed1891a700bdb43e37da354b2ab63c
- Affected versionversion=2a20592baff59c5351c5200ec667e1a2aa22af85 <679837dc0abaa2c6e2a7bcd86483e05eee1d5066
- Affected versionversion=50cbad42bfea8c052b7ca590bd4126cdc898713c <8d7c539316d652d217e5e82b89ee204c812a7061
- Affected versionversion=5.10.37 <5.10.52
- Affected versionversion=5.11.21 <5.12
- Affected versionversion=5.12.4 <5.12.19
- Affected versionversion=5.13
- Affected versionversion=5.4.119 <5.4.134
- Affected versionversion=5d3c4c79384af06e3c8e25b7770b6247496b4417 <069d44a24c0ff8f85adf49233aae7a8ca16f5c7e
- Affected versionversion=5d3c4c79384af06e3c8e25b7770b6247496b4417 <23fa2e46a5556f787ce2ea1a315d3ab93cced204
- Affected versionversion=7d1bc32d6477ff96a32695ea4be8144e4513ab2d <f2ff9d03432fcb160e9f7d4be26174d89de2779a
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo