# CVE-2021-47092: KVM: VMX: Always clear vmx-\>fail on emulation\_required

> 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:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2024-03-04T18:10:40.037Z
- **Modified:** 2026-06-17T04:16:27.127Z

## Who should check

- Anyone running Linux \>= c8607e4a086fae05efe5bffb47c5199c65e7216e, \< e4e4e7cb229821cd215031abc47efdab5486a67c; \>= c8607e4a086fae05efe5bffb47c5199c65e7216e, \< a80dfc025924024d2c61a4c1b8ef62b2fce76a04
- Anyone running Linux 5.15

## Description

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

KVM: VMX: Always clear vmx-\>fail on emulation\_required

Revert a relatively recent change that set vmx-\>fail if the vCPU is in L2
and emulation\_required is true, as that behavior is completely bogus.
Setting vmx-\>fail and synthesizing a VM-Exit is contradictory and wrong:

  (a) it's impossible to have both a VM-Fail and VM-Exit
  (b) vmcs.EXIT\_REASON is not modified on VM-Fail
  (c) emulation\_required refers to guest state and guest state checks are
      always VM-Exits, not VM-Fails.

For KVM specifically, emulation\_required is handled before nested exits
in \_\_vmx\_handle\_exit(), thus setting vmx-\>fail has no immediate effect,
i.e. KVM calls into handle\_invalid\_guest\_state() and vmx-\>fail is ignored.
Setting vmx-\>fail can ultimately result in a WARN in nested\_vmx\_vmexit()
firing when tearing down the VM as KVM never expects vmx-\>fail to be set
when L2 is active, KVM always reflects those errors into L1.

  ------------\[ cut here \]------------
  WARNING: CPU: 0 PID: 21158 at arch/x86/kvm/vmx/nested.c:4548
                                nested\_vmx\_vmexit+0x16bd/0x17e0
                                arch/x86/kvm/vmx/nested.c:4547
  Modules linked in:
  CPU: 0 PID: 21158 Comm: syz-executor.1 Not tainted 5.16.0-rc3-syzkaller \#0
  Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
  RIP: 0010:nested\_vmx\_vmexit+0x16bd/0x17e0 arch/x86/kvm/vmx/nested.c:4547
  Code: \<0f\> 0b e9 2e f8 ff ff e8 57 b3 5d 00 0f 0b e9 00 f1 ff ff 89 e9 80
  Call Trace:
   vmx\_leave\_nested arch/x86/kvm/vmx/nested.c:6220 \[inline\]
   nested\_vmx\_free\_vcpu+0x83/0xc0 arch/x86/kvm/vmx/nested.c:330
   vmx\_free\_vcpu+0x11f/0x2a0 arch/x86/kvm/vmx/vmx.c:6799
   kvm\_arch\_vcpu\_destroy+0x6b/0x240 arch/x86/kvm/x86.c:10989
   kvm\_vcpu\_destroy+0x29/0x90 arch/x86/kvm/../../../virt/kvm/kvm\_main.c:441
   kvm\_free\_vcpus arch/x86/kvm/x86.c:11426 \[inline\]
   kvm\_arch\_destroy\_vm+0x3ef/0x6b0 arch/x86/kvm/x86.c:11545
   kvm\_destroy\_vm arch/x86/kvm/../../../virt/kvm/kvm\_main.c:1189 \[inline\]
   kvm\_put\_kvm+0x751/0xe40 arch/x86/kvm/../../../virt/kvm/kvm\_main.c:1220
   kvm\_vcpu\_release+0x53/0x60 arch/x86/kvm/../../../virt/kvm/kvm\_main.c:3489
   \_\_fput+0x3fc/0x870 fs/file\_table.c:280
   task\_work\_run+0x146/0x1c0 kernel/task\_work.c:164
   exit\_task\_work include/linux/task\_work.h:32 \[inline\]
   do\_exit+0x705/0x24f0 kernel/exit.c:832
   do\_group\_exit+0x168/0x2d0 kernel/exit.c:929
   get\_signal+0x1740/0x2120 kernel/signal.c:2852
   arch\_do\_signal\_or\_restart+0x9c/0x730 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+0x191/0x220 kernel/entry/common.c:207
   \_\_syscall\_exit\_to\_user\_mode\_work kernel/entry/common.c:289 \[inline\]
   syscall\_exit\_to\_user\_mode+0x2e/0x70 kernel/entry/common.c:300
   do\_syscall\_64+0x53/0xd0 arch/x86/entry/common.c:86
   entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= c8607e4a086fae05efe5bffb47c5199c65e7216e, \< e4e4e7cb229821cd215031abc47efdab5486a67c; \>= c8607e4a086fae05efe5bffb47c5199c65e7216e, \< a80dfc025924024d2c61a4c1b8ef62b2fce76a04 (cvelist)
- Linux: 5.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-2021-47092. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47092.md
Affected: Linux >= c8607e4a086fae05efe5bffb47c5199c65e7216e, < e4e4e7cb229821cd215031abc47efdab5486a67c; >= c8607e4a086fae05efe5bffb47c5199c65e7216e, < a80dfc025924024d2c61a4c1b8ef62b2fce76a04; Linux 5.15
Fixed in: no fixed version listed yet

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-2021-47092 being exploited?

There is no confirmed exploitation: CVE-2021-47092 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47092?

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

### Which versions are affected by CVE-2021-47092?

Linux \>= c8607e4a086fae05efe5bffb47c5199c65e7216e, \< e4e4e7cb229821cd215031abc47efdab5486a67c; \>= c8607e4a086fae05efe5bffb47c5199c65e7216e, \< a80dfc025924024d2c61a4c1b8ef62b2fce76a04; Linux 5.15.

### Is there a fix for CVE-2021-47092?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47092?

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

- exploit: <https://git.kernel.org/stable/c/e4e4e7cb229821cd215031abc47efdab5486a67c>
- exploit: <https://git.kernel.org/stable/c/a80dfc025924024d2c61a4c1b8ef62b2fce76a04>

## 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-2021-47092>

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