CVE-2024-35801
x86/fpu: Keep xfd_state in sync with MSR_IA32_XFD
Reported by linux · Published May 17, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf | Amazon Linux | 6.1.84-99.169.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.84-99.169.amzn2023 |
| kernel | Amazon Linux | 6.1.84-99.169.amzn2023 |
| linux_kernel | linux | 6.8.3, 6.7.12, 6.6.24, 6.1.84 |
| Linux | Linux | b61e3b7055ac6edee4be071c52f48c26472d2624, 92b0f04e937665bde5768f3fcc622dcce44413d8, 21c7c00dae55cb0e3810d5f9506b58f68475d41d, 1acbca933313aa866e39996904c9aca4d435c4cd, 10e4b5166df9ff7a2d5316138ca668b42d004422 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 672365477ae8afca5a1cca98c1deb733235e4525, 672365477ae8afca5a1cca98c1deb733235e4525, 672365477ae8afca5a1cca98c1deb733235e4525 |
| Linux | Linux | 5.16, 0, 6.1.84 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel | 0 |
| Linux | Linux | 0, 5.16, 672365477ae8afca5a1cca98c1deb733235e4525 |
| amazon:2023 | bpftool | 0 |
| linux | linux_kernel | 5.16, 5.16, 5.16 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| linux | linux_kernel | 6.1.84, 672365477ae8, 672365477ae8 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-livepatch-6.1.84-99.169 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | python3-perf | 0 |
Timeline
- May 17, 2024 CVE Published
- May 18, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 10, 2026 Security Advisory (495 in total, the first dated here)
- May 28, 2026 Distribution Patch (387 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-35801
vulnetix vdb fixes CVE-2024-35801
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35801/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart