# CVE-2026-99120: KVM: x86/mmu: Cope with the SS bit being set in \#NPF exit codes

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-28T10:34:36.224Z
- **Modified:** 2026-10-28T11:17:31.613Z

## Who should check

- Anyone running Linux \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< 0caeefed99b37f03251a00eb1fdb403a1cf2cb68; \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< d6e08ec2fff45e0ec69f11010851650d7c6282b9; \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< e90ab3669181c6469e3647ef2b30ae408275f496
- Anyone running Linux 6.18

## Description

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

KVM: x86/mmu: Cope with the SS bit being set in \#NPF exit codes

When running Hyper-V from Windows 11, KVM is seeing the SS bit set
in nested page fault error codes produced for shadowed NPT.  The AMD
manual is unclear about when SS is set, including whether it can be set
when SupervisorShadowStackEn (bit 6) is not set in the MISC\_CTL field
of the VMCB.

Nevertheless, the unexpected SS bit causes out of bounds accesses in
permission\_fault(), seen as either WARNs or UBSAN reports:

  kernel: UBSAN: array-index-out-of-bounds in arch/x86/kvm/mmu.h:225:27
  kernel: index 34 is out of range for type 'u16 \[16\]'

(in this case, the page fault error code is 34\*2=0x44, i.e. SS\|U; the
report shows SS\|U\|W happening as well).  Fix the handling of unknown
error codes by dropping SS and (with a WARN) any bits not among those
that permission\_fault() expects to receive.

At the same time, given the uncertainty about when hardware sets SS,
follow the processor's behavior when constructing the fault's error
code, and preserve the SS bit as passed to FNAME(walk\_addr\_generic).
While the behavior is surprising, there's a possibility that Hyper-V
expects it (Hyper-V does not even enable CET unless it finds MBEC/GMET!),
so retain the information when reflecting the fault to L1 instead of
unconditionally discarding it.

Bisection shows that this started happening with commit 687ee95c1b6d ("KVM:
nSVM: enable GMET for guests"), even though SHSTK was available to guests
since Linux 6.18.  However, this is not because bit 1 of MISC\_CTL (GMET)
somehow enables reporting the SS bit; rather, it's simply that Hyper-V
never uses CET unless GMET is also present.  The WARN is reproducible
even with gmet=0, with some hacking of kvm-unit-tests's cet.c testcase
to ensure that the first access to the shadow stack triggers a page fault.

## Affected and fixed versions

- Linux: \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< 0caeefed99b37f03251a00eb1fdb403a1cf2cb68; \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< d6e08ec2fff45e0ec69f11010851650d7c6282b9; \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< e90ab3669181c6469e3647ef2b30ae408275f496 (cvelist)
- Linux: 6.18 (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-2026-99120. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99120.md
Affected: Linux >= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, < 0caeefed99b37f03251a00eb1fdb403a1cf2cb68; >= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, < d6e08ec2fff45e0ec69f11010851650d7c6282b9; >= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, < e90ab3669181c6469e3647ef2b30ae408275f496; Linux 6.18
Fixed in: Linux 0caeefed99b37f03251a00eb1fdb403a1cf2cb68

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-2026-99120 being exploited?

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

### How serious is CVE-2026-99120?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99120?

Linux \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< 0caeefed99b37f03251a00eb1fdb403a1cf2cb68; \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< d6e08ec2fff45e0ec69f11010851650d7c6282b9; \>= 8db428fd5229ba509d515af10d7f33d7d4a54bfe, \< e90ab3669181c6469e3647ef2b30ae408275f496; Linux 6.18.

### Is there a fix for CVE-2026-99120?

Yes. Fixed in Linux 0caeefed99b37f03251a00eb1fdb403a1cf2cb68. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99120?

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

- other: <https://git.kernel.org/stable/c/0caeefed99b37f03251a00eb1fdb403a1cf2cb68>
- other: <https://git.kernel.org/stable/c/d6e08ec2fff45e0ec69f11010851650d7c6282b9>
- other: <https://git.kernel.org/stable/c/e90ab3669181c6469e3647ef2b30ae408275f496>

## 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-2026-99120>

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