VDB

CVE-2024-35801

CVE-2024-35801 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel-libbpfAmazon Linux6.1.84-99.169.amzn2023
kernel-libbpf-staticAmazon Linux6.1.84-99.169.amzn2023
kernelAmazon Linux6.1.84-99.169.amzn2023
linux_kernellinux6.8.3, 6.7.12, 6.6.24, 6.1.84
LinuxLinuxb61e3b7055ac6edee4be071c52f48c26472d2624, 92b0f04e937665bde5768f3fcc622dcce44413d8, 21c7c00dae55cb0e3810d5f9506b58f68475d41d, 1acbca933313aa866e39996904c9aca4d435c4cd, 10e4b5166df9ff7a2d5316138ca668b42d004422

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux672365477ae8afca5a1cca98c1deb733235e4525, 672365477ae8afca5a1cca98c1deb733235e4525, 672365477ae8afca5a1cca98c1deb733235e4525
LinuxLinux5.16, 0, 6.1.84
amazon:2023kernel-libbpf0
amazon:2023kernel-libbpf-static0
amazon:2023kernel0
LinuxLinux0, 5.16, 672365477ae8afca5a1cca98c1deb733235e4525
amazon:2023bpftool0
linuxlinux_kernel5.16, 5.16, 5.16
amazon:2023kernel-libbpf-devel0
linuxlinux_kernel6.1.84, 672365477ae8, 672365477ae8
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-modules-extra0
amazon:2023perf0
amazon:2023kernel-headers0
amazon:2023kernel-livepatch-6.1.84-99.1690
amazon:2023kernel-tools0
amazon:2023kernel-tools-devel0
amazon:2023kernel-devel0
amazon:2023python3-perf0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›