CVE-2022-48763
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability was discovered in the Linux kernel's KVM (Kernel-based Virtual Machine) x86 virtualization implementation. The issue occurs when userspace toggles SMM (System Management Mode) state via KVMSETVCPUEVENTS or KVMSYNCX86EVENTS. If userspace forces the vCPU out of SMM while it's post-VMXON and then injects an SMI, it results in an inconsistent state where both vmxon=false and smm.vmxon=false, but all other nVMX state remains allocated (Kernel Git).

Technical details

The vulnerability stems from improper handling of SMM state transitions in nested virtualization. The issue manifests when vmxentersmm() overwrites vmx->nested.smm.vmxon, leading to an architecturally impossible state. The bug is particularly problematic because KVMSETVCPUEVENTS must precede KVMSETNESTEDSTATE during state restore, as the latter disallows putting the vCPU into L2 if SMM is active, and disallows tagging the vCPU as being post-VMXON in SMM if SMM is not active (Kernel Git).

Impact

The vulnerability primarily manifests as a memory leak in nVMX due to failure to free vmcs01's shadow VMCS. However, the impact extends beyond memory leaks - for example, toggling SMM on while L2 is active puts the vCPU in an architecturally impossible state, which could lead to system instability or security issues (Kernel Git).

Mitigation and workarounds

The fix involves forcibly leaving nested virtualization operation when userspace toggles SMM state. This is implemented by adding a new leave_nested operation to the nested ops structure and calling it when SMM state changes. The fix has been implemented in the Linux kernel through a series of patches (Kernel Git).

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-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-hwe-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-tools-libs-devel
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesNov 24, 2025

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