CVE-2021-47341
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability has been identified in the Linux kernel's KVM (Kernel-based Virtual Machine) component, specifically in the coalesced MMIO (Memory-Mapped I/O) functionality. The vulnerability, tracked as CVE-2021-47341, occurs in the kvm_vm_ioctl_unregister_coalesced_mmio function when handling MMIO device unregistration. This issue affects Linux kernel versions from 5.4.119 up to (but not including) 5.4.134, 5.10.37 up to 5.10.52, 5.11.21 up to 5.12, and 5.12.4 up to 5.12.19 (NVD).

Technical details

The vulnerability is triggered when kvm_io_bus_unregister_dev() returns -ENOMEM, causing a double-free condition. In this scenario, kvm_iodevice_destructor() is called inside the function to delete the 'struct kvm_coalesced_mmio_dev *dev' from the list and free the device, but kvm_iodevice_destructor() is erroneously called again, leading to a use-after-free condition. The issue manifests as a read of size 8 at a freed memory location. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could potentially lead to privilege escalation, information disclosure, or system crashes in environments using KVM virtualization. The high CVSS score indicates that successful exploitation could result in a complete compromise of confidentiality, integrity, and availability of the affected system, though local access is required (NVD).

Exploitability

The vulnerability requires local access and low privileges to exploit. It can be triggered through the KVM IOCTL interface when handling MMIO device unregistration operations. The issue was discovered and reported by Hulk Robot (Kernel Patch).

Mitigation and workarounds

The vulnerability has been fixed by modifying the code to check the return value of kvm_io_bus_unregister_dev() and only call kvm_iodevice_destructor() if the return value is 0. The fix has been implemented in the Linux kernel through a patch that corrects the double-free condition. Users should upgrade to patched kernel versions to mitigate this vulnerability (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74576HIGH7.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-6.17
NoYesAug 15, 2026
CVE-2026-74578HIGH7.1
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.8
NoYesAug 16, 2026
CVE-2026-74579LOW3.4
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-5.15
NoYesAug 17, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • perf
NoNoAug 21, 2026
CVE-2026-74577NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management