CVE-2021-47230
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

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-68480NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-uek64k-devel
NoYesAug 06, 2026
CVE-2026-64582NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-aws-fips
NoYesAug 05, 2026
CVE-2026-64579NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 05, 2026
CVE-2026-64576NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 05, 2026
CVE-2026-64575NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.17
NoYesAug 05, 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