
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-47230 affects the Linux kernel's KVM (Kernel Virtual Machine) x86 implementation. The vulnerability was discovered and disclosed on May 21, 2024, and involves an issue with the MMU context handling when the SMM (System Management Mode) flag is cleared. This vulnerability occurs when the SMM flag in the MMU role becomes desynchronized with the vCPU's flag during RSM (Resume from System Management Mode) operations (NVD).
The vulnerability arises when RSM fails during emulation, causing KVM to exit without calling post_leave_smm() and leaving the MMU in an inconsistent state. This desynchronization between the vCPU's SMM flag (=0) and the shadow page's SMM flag (=1) can lead to a NULL pointer dereference during page fault handling. The issue specifically occurs during rmap lookups, as SMM uses different memory slots, causing the initial lookup to find a memslot with SMM=0 but fail during the rmap memslot lookup with SMM=1 (Kernel Commit). The vulnerability has been assigned a CVSS v3.1 Base Score of 6.6 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H (NVD).
When exploited, this vulnerability can result in a NULL pointer dereference, potentially leading to system crashes and denial of service. The issue affects the kernel's ability to properly handle virtual machine memory management during SMM operations, which could impact system stability and security (NVD).
The vulnerability requires local access and elevated privileges to exploit. It specifically occurs during KVM virtual machine operations involving SMM state transitions, making it relevant to environments using KVM virtualization with x86 processors (Kernel Commit).
The issue has been fixed in the Linux kernel by implementing immediate reset of the MMU context when the vCPU's SMM flag is cleared, ensuring synchronization between the MMU role and vCPU flags. The fix involves modifying the emulator_set_hflags function to call kvm_mmu_reset_context when updating the hflags (Kernel Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."