# CVE-2021-47262: KVM: x86: Ensure liveliness of nested VM-Enter fail tracepoint message

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.32% (percentile 17, 2026-11-26)
- **Published:** 2024-05-21T14:19:54.666Z
- **Modified:** 2026-06-17T04:17:02.640Z

## Who should check

- Anyone running Linux \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< 796d3bd4ac9316e70c181189318cd2bd98af34bc; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< d046f724bbd725a24007b7e52b2d675249870888; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< 9fb088ce13bc3c59a51260207b487db3e556f275; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< f31500b0d437a2464ca5972d8f5439e156b74960
- Anyone running Linux 5.4

## Description

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

KVM: x86: Ensure liveliness of nested VM-Enter fail tracepoint message

Use the \_\_string() machinery provided by the tracing subystem to make a
copy of the string literals consumed by the "nested VM-Enter failed"
tracepoint.  A complete copy is necessary to ensure that the tracepoint
can't outlive the data/memory it consumes and deference stale memory.

Because the tracepoint itself is defined by kvm, if kvm-intel and/or
kvm-amd are built as modules, the memory holding the string literals
defined by the vendor modules will be freed when the module is unloaded,
whereas the tracepoint and its data in the ring buffer will live until
kvm is unloaded (or "indefinitely" if kvm is built-in).

This bug has existed since the tracepoint was added, but was recently
exposed by a new check in tracing to detect exactly this type of bug.

  fmt: '%s%s
  ' current\_buffer: ' vmx\_dirty\_log\_t-140127  \[003\] ....  kvm\_nested\_vmenter\_failed: '
  WARNING: CPU: 3 PID: 140134 at kernel/trace/trace.c:3759 trace\_check\_vprintf+0x3be/0x3e0
  CPU: 3 PID: 140134 Comm: less Not tainted 5.13.0-rc1-ce2e73ce600a-req \#184
  Hardware name: ASUS Q87M-E/Q87M-E, BIOS 1102 03/03/2014
  RIP: 0010:trace\_check\_vprintf+0x3be/0x3e0
  Code: \<0f\> 0b 44 8b 4c 24 1c e9 a9 fe ff ff c6 44 02 ff 00 49 8b 97 b0 20
  RSP: 0018:ffffa895cc37bcb0 EFLAGS: 00010282
  RAX: 0000000000000000 RBX: ffffa895cc37bd08 RCX: 0000000000000027
  RDX: 0000000000000027 RSI: 00000000ffffdfff RDI: ffff9766cfad74f8
  RBP: ffffffffc0a041d4 R08: ffff9766cfad74f0 R09: ffffa895cc37bad8
  R10: 0000000000000001 R11: 0000000000000001 R12: ffffffffc0a041d4
  R13: ffffffffc0f4dba8 R14: 0000000000000000 R15: ffff976409f2c000
  FS:  00007f92fa200740(0000) GS:ffff9766cfac0000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000559bd11b0000 CR3: 000000019fbaa002 CR4: 00000000001726e0
  Call Trace:
   trace\_event\_printf+0x5e/0x80
   trace\_raw\_output\_kvm\_nested\_vmenter\_failed+0x3a/0x60 \[kvm\]
   print\_trace\_line+0x1dd/0x4e0
   s\_show+0x45/0x150
   seq\_read\_iter+0x2d5/0x4c0
   seq\_read+0x106/0x150
   vfs\_read+0x98/0x180
   ksys\_read+0x5f/0xe0
   do\_syscall\_64+0x40/0xb0
   entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< 796d3bd4ac9316e70c181189318cd2bd98af34bc; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< d046f724bbd725a24007b7e52b2d675249870888; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< 9fb088ce13bc3c59a51260207b487db3e556f275; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< f31500b0d437a2464ca5972d8f5439e156b74960 (cvelist)
- Linux: 5.4 (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-47262. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47262.md
Affected: Linux >= 380e0055bc7e4a5c687436ba3ccebb4667836b95, < 796d3bd4ac9316e70c181189318cd2bd98af34bc; >= 380e0055bc7e4a5c687436ba3ccebb4667836b95, < d046f724bbd725a24007b7e52b2d675249870888; >= 380e0055bc7e4a5c687436ba3ccebb4667836b95, < 9fb088ce13bc3c59a51260207b487db3e556f275; >= 380e0055bc7e4a5c687436b…
Fixed in: Linux 796d3bd4ac9316e70c181189318cd2bd98af34bc, Linux 9fb088ce13bc3c59a51260207b487db3e556f275

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-47262 being exploited?

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

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

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< 796d3bd4ac9316e70c181189318cd2bd98af34bc; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< d046f724bbd725a24007b7e52b2d675249870888; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< 9fb088ce13bc3c59a51260207b487db3e556f275; \>= 380e0055bc7e4a5c687436ba3ccebb4667836b95, \< f31500b0d437a2464ca5972d8f5439e156b74960; Linux 5.4.

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

Yes. Fixed in Linux 796d3bd4ac9316e70c181189318cd2bd98af34bc, Linux 9fb088ce13bc3c59a51260207b487db3e556f275. No fix listed yet: follow the vendor advisory.

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

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/796d3bd4ac9316e70c181189318cd2bd98af34bc>
- patch: <https://git.kernel.org/stable/c/d046f724bbd725a24007b7e52b2d675249870888>
- patch: <https://git.kernel.org/stable/c/9fb088ce13bc3c59a51260207b487db3e556f275>
- patch: <https://git.kernel.org/stable/c/f31500b0d437a2464ca5972d8f5439e156b74960>

## 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-47262>

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