# CVE-2024-35801: x86/fpu: Keep xfd\_state in sync with MSR\_IA32\_XFD

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-17T13:23:10.830Z
- **Modified:** 2026-06-17T07:35:24.713Z

## Who should check

- Anyone running Linux \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 21c7c00dae55cb0e3810d5f9506b58f68475d41d; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 1acbca933313aa866e39996904c9aca4d435c4cd; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 92b0f04e937665bde5768f3fcc622dcce44413d8; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< b61e3b7055ac6edee4be071c52f48c26472d2624; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 10e4b5166df9ff7a2d5316138ca668b42d004422
- Anyone running Linux 5.16

## Description

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

x86/fpu: Keep xfd\_state in sync with MSR\_IA32\_XFD

Commit 672365477ae8 ("x86/fpu: Update XFD state where required") and
commit 8bf26758ca96 ("x86/fpu: Add XFD state to fpstate") introduced a
per CPU variable xfd\_state to keep the MSR\_IA32\_XFD value cached, in
order to avoid unnecessary writes to the MSR.

On CPU hotplug MSR\_IA32\_XFD is reset to the init\_fpstate.xfd, which
wipes out any stale state. But the per CPU cached xfd value is not
reset, which brings them out of sync.

As a consequence a subsequent xfd\_update\_state() might fail to update
the MSR which in turn can result in XRSTOR raising a \#NM in kernel
space, which crashes the kernel.

To fix this, introduce xfd\_set\_state() to write xfd\_state together
with MSR\_IA32\_XFD, and use it in all places that set MSR\_IA32\_XFD.

## Affected and fixed versions

- Linux: \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 21c7c00dae55cb0e3810d5f9506b58f68475d41d; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 1acbca933313aa866e39996904c9aca4d435c4cd; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 92b0f04e937665bde5768f3fcc622dcce44413d8; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< b61e3b7055ac6edee4be071c52f48c26472d2624; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 10e4b5166df9ff7a2d5316138ca668b42d004422 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 10e4b5166df9ff7a2d5316138ca668b42d004422 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-35801.md
Affected: Linux >= 672365477ae8afca5a1cca98c1deb733235e4525, < 21c7c00dae55cb0e3810d5f9506b58f68475d41d; >= 672365477ae8afca5a1cca98c1deb733235e4525, < 1acbca933313aa866e39996904c9aca4d435c4cd; >= 672365477ae8afca5a1cca98c1deb733235e4525, < 92b0f04e937665bde5768f3fcc622dcce44413d8; >= 672365477ae8afca5a1cca9…
Fixed in: Linux 21c7c00dae55cb0e3810d5f9506b58f68475d41d, Linux 1acbca933313aa866e39996904c9aca4d435c4cd, Linux 92b0f04e937665bde5768f3fcc622dcce44413d8, Linux 10e4b5166df9ff7a2d5316138ca668b42d004422

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-2024-35801 being exploited?

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

### How serious is CVE-2024-35801?

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

### Which versions are affected by CVE-2024-35801?

Linux \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 21c7c00dae55cb0e3810d5f9506b58f68475d41d; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 1acbca933313aa866e39996904c9aca4d435c4cd; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 92b0f04e937665bde5768f3fcc622dcce44413d8; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< b61e3b7055ac6edee4be071c52f48c26472d2624; \>= 672365477ae8afca5a1cca98c1deb733235e4525, \< 10e4b5166df9ff7a2d5316138ca668b42d004422; Linux 5.16.

### Is there a fix for CVE-2024-35801?

Yes. Fixed in Linux 21c7c00dae55cb0e3810d5f9506b58f68475d41d, Linux 1acbca933313aa866e39996904c9aca4d435c4cd, Linux 92b0f04e937665bde5768f3fcc622dcce44413d8, Linux 10e4b5166df9ff7a2d5316138ca668b42d004422. Upgrade Linux to 10e4b5166df9ff7a2d5316138ca668b42d004422 or later.

### How do I check if I'm affected by CVE-2024-35801?

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/21c7c00dae55cb0e3810d5f9506b58f68475d41d>
- patch: <https://git.kernel.org/stable/c/1acbca933313aa866e39996904c9aca4d435c4cd>
- patch: <https://git.kernel.org/stable/c/92b0f04e937665bde5768f3fcc622dcce44413d8>
- patch: <https://git.kernel.org/stable/c/b61e3b7055ac6edee4be071c52f48c26472d2624>
- patch: <https://git.kernel.org/stable/c/10e4b5166df9ff7a2d5316138ca668b42d004422>

## 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-2024-35801>

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