Skip to main content
Network Thinking Solutions Logo

CVE-2024-35801

Linux kernel: x86/fpu: Keep xfd_state in sync with MSR_IA32_XFD

All CVEs
CVE-2024-35801Published 5/17/2024

Linux kernel: x86/fpu: Keep xfd_state in sync with MSR_IA32_XFD

Vendor advisory
CVSS7.8High

Overview

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.

Published
5/17/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.16, < 6.1.84

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.24

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.7.12

Verify advisory

Source
linux kernel
linux
≥ 6.8, < 6.8.3

Verify advisory

Source
Linux
Linux
≥ 672365477ae8afca5a1cca98c1deb733235e4525, < 21c7c00dae55cb0e3810d5f9506b58f68475d41d

Verify advisory

Source
Linux
Linux
≥ 672365477ae8afca5a1cca98c1deb733235e4525, < 1acbca933313aa866e39996904c9aca4d435c4cd

Verify advisory

Source
Linux
Linux
≥ 672365477ae8afca5a1cca98c1deb733235e4525, < 92b0f04e937665bde5768f3fcc622dcce44413d8

Verify advisory

Source
Linux
Linux
≥ 672365477ae8afca5a1cca98c1deb733235e4525, < b61e3b7055ac6edee4be071c52f48c26472d2624

Verify advisory

Source
Linux
Linux
≥ 672365477ae8afca5a1cca98c1deb733235e4525, < 10e4b5166df9ff7a2d5316138ca668b42d004422

Verify advisory

Source
Linux
Linux
5.16

Verify advisory

Source
linux_kernel
linux
≥ 672365477ae8, < 21c7c00dae55

Verify advisory

Source
linux_kernel
linux
≥ 672365477ae8, < 1acbca933313

Verify advisory

Source
linux_kernel
linux
≥ 672365477ae8, < 92b0f04e9376

Verify advisory

Source
linux_kernel
linux
≥ 672365477ae8, < b61e3b7055ac

Verify advisory

Source
linux_kernel
linux
≥ 672365477ae8, < 10e4b5166df9

Verify advisory

Source
linux_kernel
linux
5.16

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.