# CVE-2022-50224: KVM: x86/mmu: Treat NX as a valid SPTE bit for NPT

> 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.24% (percentile 9, 2026-11-26)
- **Published:** 2025-06-18T11:03:57.954Z
- **Modified:** 2026-11-05T20:17:28.120Z

## Who should check

- Anyone running Linux \>= b8e8c8303ff28c61046a4d0f6ea99aea609a7dc0, \< 6271f2854b9233702e236e576b885a876dde4889; \>= b8e8c8303ff28c61046a4d0f6ea99aea609a7dc0, \< 6c6ab524cfae0799e55c82b2c1d61f1af0156f8d; a7ad7943b84fae87f5be18f05025c51ae103f732; bb16a6ba5d1ed79b40caea8d924e237f63205b7c; 5219505fcbb640e273a0d51c19c38de0100ec5a9; 78ffa84f00ff6b19f00c0e6dfe1870aba0db4025; \>= 4.9.202, \< 4.10; \>= 4.14.154, \< 4.15; \>= 4.19.84, \< 4.20; \>= 5.3.11, \< 5.4
- Anyone running Linux 5.4

## Description

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

KVM: x86/mmu: Treat NX as a valid SPTE bit for NPT

Treat the NX bit as valid when using NPT, as KVM will set the NX bit when
the NX huge page mitigation is enabled (mindblowing) and trigger the WARN
that fires on reserved SPTE bits being set.

KVM has required NX support for SVM since commit b26a71a1a5b9 ("KVM: SVM:
Refuse to load kvm\_amd if NX support is not available") for exactly this
reason, but apparently it never occurred to anyone to actually test NPT
with the mitigation enabled.

  ------------\[ cut here \]------------
  spte = 0x800000018a600ee7, level = 2, rsvd bits = 0x800f0000001fe000
  WARNING: CPU: 152 PID: 15966 at arch/x86/kvm/mmu/spte.c:215 make\_spte+0x327/0x340 \[kvm\]
  Hardware name: Google, Inc. Arcadia\_IT\_80/Arcadia\_IT\_80, BIOS 10.48.0 01/27/2022
  RIP: 0010:make\_spte+0x327/0x340 \[kvm\]
  Call Trace:
   \<TASK\>
   tdp\_mmu\_map\_handle\_target\_level+0xc3/0x230 \[kvm\]
   kvm\_tdp\_mmu\_map+0x343/0x3b0 \[kvm\]
   direct\_page\_fault+0x1ae/0x2a0 \[kvm\]
   kvm\_tdp\_page\_fault+0x7d/0x90 \[kvm\]
   kvm\_mmu\_page\_fault+0xfb/0x2e0 \[kvm\]
   npf\_interception+0x55/0x90 \[kvm\_amd\]
   svm\_invoke\_exit\_handler+0x31/0xf0 \[kvm\_amd\]
   svm\_handle\_exit+0xf6/0x1d0 \[kvm\_amd\]
   vcpu\_enter\_guest+0xb6d/0xee0 \[kvm\]
   ? kvm\_pmu\_trigger\_event+0x6d/0x230 \[kvm\]
   vcpu\_run+0x65/0x2c0 \[kvm\]
   kvm\_arch\_vcpu\_ioctl\_run+0x355/0x610 \[kvm\]
   kvm\_vcpu\_ioctl+0x551/0x610 \[kvm\]
   \_\_se\_sys\_ioctl+0x77/0xc0
   \_\_x64\_sys\_ioctl+0x1d/0x20
   do\_syscall\_64+0x44/0xa0
   entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0
   \</TASK\>
  ---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= b8e8c8303ff28c61046a4d0f6ea99aea609a7dc0, \< 6271f2854b9233702e236e576b885a876dde4889; \>= b8e8c8303ff28c61046a4d0f6ea99aea609a7dc0, \< 6c6ab524cfae0799e55c82b2c1d61f1af0156f8d; a7ad7943b84fae87f5be18f05025c51ae103f732; bb16a6ba5d1ed79b40caea8d924e237f63205b7c; 5219505fcbb640e273a0d51c19c38de0100ec5a9; 78ffa84f00ff6b19f00c0e6dfe1870aba0db4025; \>= 4.9.202, \< 4.10; \>= 4.14.154, \< 4.15; \>= 4.19.84, \< 4.20; \>= 5.3.11, \< 5.4 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 5.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50224.md
Affected: Linux >= b8e8c8303ff28c61046a4d0f6ea99aea609a7dc0, < 6271f2854b9233702e236e576b885a876dde4889; >= b8e8c8303ff28c61046a4d0f6ea99aea609a7dc0, < 6c6ab524cfae0799e55c82b2c1d61f1af0156f8d; a7ad7943b84fae87f5be18f05025c51ae103f732; bb16a6ba5d1ed79b40caea8d924e237f63205b7c; 5219505fcbb640e273a0d51c19c38de…
Fixed in: Linux 6271f2854b9233702e236e576b885a876dde4889, Linux 6c6ab524cfae0799e55c82b2c1d61f1af0156f8d, Linux 4.10, Linux 4.15, Linux 4.20, Linux 5.4

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

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

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

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

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

Linux \>= b8e8c8303ff28c61046a4d0f6ea99aea609a7dc0, \< 6271f2854b9233702e236e576b885a876dde4889; \>= b8e8c8303ff28c61046a4d0f6ea99aea609a7dc0, \< 6c6ab524cfae0799e55c82b2c1d61f1af0156f8d; a7ad7943b84fae87f5be18f05025c51ae103f732; bb16a6ba5d1ed79b40caea8d924e237f63205b7c; 5219505fcbb640e273a0d51c19c38de0100ec5a9; 78ffa84f00ff6b19f00c0e6dfe1870aba0db4025; \>= 4.9.202, \< 4.10; \>= 4.14.154, \< 4.15; \>= 4.19.84, \< 4.20; \>= 5.3.11, \< 5.4; Linux 5.4.

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

Yes. Fixed in Linux 6271f2854b9233702e236e576b885a876dde4889, Linux 6c6ab524cfae0799e55c82b2c1d61f1af0156f8d, Linux 4.10, Linux 4.15, Linux 4.20, Linux 5.4. Upgrade Linux to 5.4 or later.

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

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/6271f2854b9233702e236e576b885a876dde4889>
- patch: <https://git.kernel.org/stable/c/6c6ab524cfae0799e55c82b2c1d61f1af0156f8d>

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

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