# CVE-2022-48763: KVM: x86: Forcibly leave nested virt when SMM state is toggled

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-06-20T11:13:40.504Z
- **Modified:** 2026-06-17T05:16:08.097Z

## Who should check

- Anyone running Linux \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< 080dbe7e9b86a0392d8dffc00d9971792afc121f; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< e302786233e6bc512986d007c96458ccf5ca21c7; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< b4c0d89c92e957ecccce12e66b63875d0cc7af7e; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< f7e570780efc5cec9b2ed1e0472a7da14e864fdb
- Anyone running Linux 4.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: x86: Forcibly leave nested virt when SMM state is toggled

Forcibly leave nested virtualization operation if userspace toggles SMM
state via KVM\_SET\_VCPU\_EVENTS or KVM\_SYNC\_X86\_EVENTS.  If userspace
forces the vCPU out of SMM while it's post-VMXON and then injects an SMI,
vmx\_enter\_smm() will overwrite vmx-\>nested.smm.vmxon and end up with both
vmxon=false and smm.vmxon=false, but all other nVMX state allocated.

Don't attempt to gracefully handle the transition as (a) most transitions
are nonsencial, e.g. forcing SMM while L2 is running, (b) there isn't
sufficient information to handle all transitions, e.g. SVM wants access
to the SMRAM save state, and (c) KVM\_SET\_VCPU\_EVENTS must precede
KVM\_SET\_NESTED\_STATE 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.

Abuse of KVM\_SET\_VCPU\_EVENTS manifests as a WARN and memory leak in nVMX
due to failure to free vmcs01's shadow VMCS, but the bug goes far beyond
just a memory leak, e.g. toggling SMM on while L2 is active puts the vCPU
in an architecturally impossible state.

  WARNING: CPU: 0 PID: 3606 at free\_loaded\_vmcs arch/x86/kvm/vmx/vmx.c:2665 \[inline\]
  WARNING: CPU: 0 PID: 3606 at free\_loaded\_vmcs+0x158/0x1a0 arch/x86/kvm/vmx/vmx.c:2656
  Modules linked in:
  CPU: 1 PID: 3606 Comm: syz-executor725 Not tainted 5.17.0-rc1-syzkaller \#0
  Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
  RIP: 0010:free\_loaded\_vmcs arch/x86/kvm/vmx/vmx.c:2665 \[inline\]
  RIP: 0010:free\_loaded\_vmcs+0x158/0x1a0 arch/x86/kvm/vmx/vmx.c:2656
  Code: \<0f\> 0b eb b3 e8 8f 4d 9f 00 e9 f7 fe ff ff 48 89 df e8 92 4d 9f 00
  Call Trace:
   \<TASK\>
   kvm\_arch\_vcpu\_destroy+0x72/0x2f0 arch/x86/kvm/x86.c:11123
   kvm\_vcpu\_destroy arch/x86/kvm/../../../virt/kvm/kvm\_main.c:441 \[inline\]
   kvm\_destroy\_vcpus+0x11f/0x290 arch/x86/kvm/../../../virt/kvm/kvm\_main.c:460
   kvm\_free\_vcpus arch/x86/kvm/x86.c:11564 \[inline\]
   kvm\_arch\_destroy\_vm+0x2e8/0x470 arch/x86/kvm/x86.c:11676
   kvm\_destroy\_vm arch/x86/kvm/../../../virt/kvm/kvm\_main.c:1217 \[inline\]
   kvm\_put\_kvm+0x4fa/0xb00 arch/x86/kvm/../../../virt/kvm/kvm\_main.c:1250
   kvm\_vm\_release+0x3f/0x50 arch/x86/kvm/../../../virt/kvm/kvm\_main.c:1273
   \_\_fput+0x286/0x9f0 fs/file\_table.c:311
   task\_work\_run+0xdd/0x1a0 kernel/task\_work.c:164
   exit\_task\_work include/linux/task\_work.h:32 \[inline\]
   do\_exit+0xb29/0x2a30 kernel/exit.c:806
   do\_group\_exit+0xd2/0x2f0 kernel/exit.c:935
   get\_signal+0x4b0/0x28c0 kernel/signal.c:2862
   arch\_do\_signal\_or\_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868
   handle\_signal\_work kernel/entry/common.c:148 \[inline\]
   exit\_to\_user\_mode\_loop kernel/entry/common.c:172 \[inline\]
   exit\_to\_user\_mode\_prepare+0x17d/0x290 kernel/entry/common.c:207
   \_\_syscall\_exit\_to\_user\_mode\_work kernel/entry/common.c:289 \[inline\]
   syscall\_exit\_to\_user\_mode+0x19/0x60 kernel/entry/common.c:300
   do\_syscall\_64+0x42/0xb0 arch/x86/entry/common.c:86
   entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
   \</TASK\>

## Affected and fixed versions

- Linux: \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< 080dbe7e9b86a0392d8dffc00d9971792afc121f; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< e302786233e6bc512986d007c96458ccf5ca21c7; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< b4c0d89c92e957ecccce12e66b63875d0cc7af7e; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< f7e570780efc5cec9b2ed1e0472a7da14e864fdb (cvelist)
- Linux: 4.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48763. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48763.md
Affected: Linux >= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, < 080dbe7e9b86a0392d8dffc00d9971792afc121f; >= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, < e302786233e6bc512986d007c96458ccf5ca21c7; >= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, < b4c0d89c92e957ecccce12e66b63875d0cc7af7e; >= 72e9cbdb43384ceacc49e2f…
Fixed in: Linux 080dbe7e9b86a0392d8dffc00d9971792afc121f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48763 being exploited?

There is no confirmed exploitation: CVE-2022-48763 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48763?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48763?

Linux \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< 080dbe7e9b86a0392d8dffc00d9971792afc121f; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< e302786233e6bc512986d007c96458ccf5ca21c7; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< b4c0d89c92e957ecccce12e66b63875d0cc7af7e; \>= 72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778, \< f7e570780efc5cec9b2ed1e0472a7da14e864fdb; Linux 4.15.

### Is there a fix for CVE-2022-48763?

Yes. Fixed in Linux 080dbe7e9b86a0392d8dffc00d9971792afc121f. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-48763?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/080dbe7e9b86a0392d8dffc00d9971792afc121f>
- patch: <https://git.kernel.org/stable/c/e302786233e6bc512986d007c96458ccf5ca21c7>
- patch: <https://git.kernel.org/stable/c/b4c0d89c92e957ecccce12e66b63875d0cc7af7e>
- patch: <https://git.kernel.org/stable/c/f7e570780efc5cec9b2ed1e0472a7da14e864fdb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48763>

HTML: <https://flawdb.com/CVE-2022-48763> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48763>
