7.8
HIGH CVSS 3.1
CVE-2024-35801
x86/fpu: Keep xfd_state in sync with MSR_IA32_XFD
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.

INFO

Published Date :

May 17, 2024, 2:15 p.m.

Last Modified :

Sept. 19, 2025, 3:44 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2024-35801 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 MEDIUM [email protected]
Solution
Updating the kernel and related packages will address the reported vulnerability.
  • Update the kernel package.
  • Update the affected packages.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-35801 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-35801 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-35801 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-35801 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Sep. 19, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE NVD-CWE-noinfo
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.24 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.7.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.84 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.8 up to (excluding) 6.8.3
    Added Reference Type CVE: https://git.kernel.org/stable/c/10e4b5166df9ff7a2d5316138ca668b42d004422 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/10e4b5166df9ff7a2d5316138ca668b42d004422 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/1acbca933313aa866e39996904c9aca4d435c4cd Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/1acbca933313aa866e39996904c9aca4d435c4cd Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/21c7c00dae55cb0e3810d5f9506b58f68475d41d Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/21c7c00dae55cb0e3810d5f9506b58f68475d41d Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/92b0f04e937665bde5768f3fcc622dcce44413d8 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/92b0f04e937665bde5768f3fcc622dcce44413d8 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/b61e3b7055ac6edee4be071c52f48c26472d2624 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/b61e3b7055ac6edee4be071c52f48c26472d2624 Types: Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/10e4b5166df9ff7a2d5316138ca668b42d004422
    Added Reference https://git.kernel.org/stable/c/1acbca933313aa866e39996904c9aca4d435c4cd
    Added Reference https://git.kernel.org/stable/c/21c7c00dae55cb0e3810d5f9506b58f68475d41d
    Added Reference https://git.kernel.org/stable/c/92b0f04e937665bde5768f3fcc622dcce44413d8
    Added Reference https://git.kernel.org/stable/c/b61e3b7055ac6edee4be071c52f48c26472d2624
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 03, 2024

    Action Type Old Value New Value
    Added CWE CISA-ADP CWE-416
    Added CVSS V3.1 CISA-ADP AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 29, 2024

    Action Type Old Value New Value
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 17, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference kernel.org https://git.kernel.org/stable/c/21c7c00dae55cb0e3810d5f9506b58f68475d41d [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1acbca933313aa866e39996904c9aca4d435c4cd [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/92b0f04e937665bde5768f3fcc622dcce44413d8 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/b61e3b7055ac6edee4be071c52f48c26472d2624 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/10e4b5166df9ff7a2d5316138ca668b42d004422 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact