# CVE-2026-23005: x86/fpu: Clear XSTATE\_BV\[i\] in guest XSAVE state whenever XFD\[i\]=1

> 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.21% (percentile 7, 2026-11-26)
- **CWE:** CWE-20
- **Published:** 2026-01-25T14:36:19.021Z
- **Modified:** 2026-11-10T13:18:32.570Z

## Who should check

- Anyone running Linux \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< b5995c01ba53d84182ecb9492fc4d91cfe8a362d; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< 1e2848bda819af569dfe7ab186223855e092a2cb; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< f577508cc8a0adb8b4ebe9480bba7683b6149930; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< eea6f395ca502c4528314c8112da9b5d65f685eb; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< b45f721775947a84996deb5c661602254ce25ce6
- Anyone running Linux 5.17

## Description

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

x86/fpu: Clear XSTATE\_BV\[i\] in guest XSAVE state whenever XFD\[i\]=1

When loading guest XSAVE state via KVM\_SET\_XSAVE, and when updating XFD in
response to a guest WRMSR, clear XFD-disabled features in the saved (or to
be restored) XSTATE\_BV to ensure KVM doesn't attempt to load state for
features that are disabled via the guest's XFD.  Because the kernel
executes XRSTOR with the guest's XFD, saving XSTATE\_BV\[i\]=1 with XFD\[i\]=1
will cause XRSTOR to \#NM and panic the kernel.

E.g. if fpu\_update\_guest\_xfd() sets XFD without clearing XSTATE\_BV:

  ------------\[ cut here \]------------
  WARNING: arch/x86/kernel/traps.c:1524 at exc\_device\_not\_available+0x101/0x110, CPU\#29: amx\_test/848
  Modules linked in: kvm\_intel kvm irqbypass
  CPU: 29 UID: 1000 PID: 848 Comm: amx\_test Not tainted 6.19.0-rc2-ffa07f7fd437-x86\_amx\_nm\_xfd\_non\_init-vm \#171 NONE
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
  RIP: 0010:exc\_device\_not\_available+0x101/0x110
  Call Trace:
   \<TASK\>
   asm\_exc\_device\_not\_available+0x1a/0x20
  RIP: 0010:restore\_fpregs\_from\_fpstate+0x36/0x90
   switch\_fpu\_return+0x4a/0xb0
   kvm\_arch\_vcpu\_ioctl\_run+0x1245/0x1e40 \[kvm\]
   kvm\_vcpu\_ioctl+0x2c3/0x8f0 \[kvm\]
   \_\_x64\_sys\_ioctl+0x8f/0xd0
   do\_syscall\_64+0x62/0x940
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
   \</TASK\>
  ---\[ end trace 0000000000000000 \]---

This can happen if the guest executes WRMSR(MSR\_IA32\_XFD) to set XFD\[18\] = 1,
and a host IRQ triggers kernel\_fpu\_begin() prior to the vmexit handler's
call to fpu\_update\_guest\_xfd().

and if userspace stuffs XSTATE\_BV\[i\]=1 via KVM\_SET\_XSAVE:

  ------------\[ cut here \]------------
  WARNING: arch/x86/kernel/traps.c:1524 at exc\_device\_not\_available+0x101/0x110, CPU\#14: amx\_test/867
  Modules linked in: kvm\_intel kvm irqbypass
  CPU: 14 UID: 1000 PID: 867 Comm: amx\_test Not tainted 6.19.0-rc2-2dace9faccd6-x86\_amx\_nm\_xfd\_non\_init-vm \#168 NONE
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
  RIP: 0010:exc\_device\_not\_available+0x101/0x110
  Call Trace:
   \<TASK\>
   asm\_exc\_device\_not\_available+0x1a/0x20
  RIP: 0010:restore\_fpregs\_from\_fpstate+0x36/0x90
   fpu\_swap\_kvm\_fpstate+0x6b/0x120
   kvm\_load\_guest\_fpu+0x30/0x80 \[kvm\]
   kvm\_arch\_vcpu\_ioctl\_run+0x85/0x1e40 \[kvm\]
   kvm\_vcpu\_ioctl+0x2c3/0x8f0 \[kvm\]
   \_\_x64\_sys\_ioctl+0x8f/0xd0
   do\_syscall\_64+0x62/0x940
   entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
   \</TASK\>
  ---\[ end trace 0000000000000000 \]---

The new behavior is consistent with the AMX architecture.  Per Intel's SDM,
XSAVE saves XSTATE\_BV as '0' for components that are disabled via XFD
(and non-compacted XSAVE saves the initial configuration of the state
component):

  If XSAVE, XSAVEC, XSAVEOPT, or XSAVES is saving the state component i,
  the instruction does not generate \#NM when XCR0\[i\] = IA32\_XFD\[i\] = 1;
  instead, it operates as if XINUSE\[i\] = 0 (and the state component was
  in its initial state): it saves bit i of XSTATE\_BV field of the XSAVE
  header as 0; in addition, XSAVE saves the initial configuration of the
  state component (the other instructions do not save state component i).

Alternatively, KVM could always do XRSTOR with XFD=0, e.g. by using
a constant XFD based on the set of enabled features when XSAVEing for
a struct fpu\_guest.  However, having XSTATE\_BV\[i\]=1 for XFD-disabled
features can only happen in the above interrupt case, or in similar
scenarios involving preemption on preemptible kernels, because
fpu\_swap\_kvm\_fpstate()'s call to save\_fpregs\_to\_fpstate() saves the
outgoing FPU state with the current XFD; and that is (on all but the
first WRMSR to XFD) the guest XFD.

Therefore, XFD can only go out of sync with XSTATE\_BV in the above
interrupt case, or in similar scenarios involving preemption on
preemptible kernels, and it we can consider it (de facto) part of KVM
ABI that KVM\_GET\_XSAVE returns XSTATE\_BV\[i\]=0 for XFD-disabled features.

\[Move clea
---truncated---

## Affected and fixed versions

- Linux: \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< b5995c01ba53d84182ecb9492fc4d91cfe8a362d; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< 1e2848bda819af569dfe7ab186223855e092a2cb; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< f577508cc8a0adb8b4ebe9480bba7683b6149930; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< eea6f395ca502c4528314c8112da9b5d65f685eb; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< b45f721775947a84996deb5c661602254ce25ce6 (cvelist)
- Linux: 5.17 (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-23005. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23005.md
Affected: Linux >= 820a6ee944e74e57255ac2e90916ecdaade57b95, < b5995c01ba53d84182ecb9492fc4d91cfe8a362d; >= 820a6ee944e74e57255ac2e90916ecdaade57b95, < 1e2848bda819af569dfe7ab186223855e092a2cb; >= 820a6ee944e74e57255ac2e90916ecdaade57b95, < f577508cc8a0adb8b4ebe9480bba7683b6149930; >= 820a6ee944e74e57255ac2e…
Fixed in: Linux 1e2848bda819af569dfe7ab186223855e092a2cb

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

There is no confirmed exploitation: CVE-2026-23005 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-23005?

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

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

Linux \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< b5995c01ba53d84182ecb9492fc4d91cfe8a362d; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< 1e2848bda819af569dfe7ab186223855e092a2cb; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< f577508cc8a0adb8b4ebe9480bba7683b6149930; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< eea6f395ca502c4528314c8112da9b5d65f685eb; \>= 820a6ee944e74e57255ac2e90916ecdaade57b95, \< b45f721775947a84996deb5c661602254ce25ce6; Linux 5.17.

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

Yes. Fixed in Linux 1e2848bda819af569dfe7ab186223855e092a2cb. No fix listed yet: follow the vendor advisory.

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

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/b5995c01ba53d84182ecb9492fc4d91cfe8a362d>
- patch: <https://git.kernel.org/stable/c/1e2848bda819af569dfe7ab186223855e092a2cb>
- patch: <https://git.kernel.org/stable/c/f577508cc8a0adb8b4ebe9480bba7683b6149930>
- patch: <https://git.kernel.org/stable/c/eea6f395ca502c4528314c8112da9b5d65f685eb>
- patch: <https://git.kernel.org/stable/c/b45f721775947a84996deb5c661602254ce25ce6>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

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

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