CVE-2024-57951
HighIn the Linux kernel, the following vulnerability has been resolved: hrtimers: Handle CPU state correctly on hotplug Consider a scenario where a CPU transitions from CPUHP_ONLINE to halfway through a CPU hotunplug down to CPUHP_HRTIMERS_PREPARE, and then back to CPUHP_ONLINE: Since hrtimers_prepare_cpu() does not run, cpu_base.hres_active remains set to 1 throughout. However, during a CPU unplug operation, the tick and the clockevents are shut down at CPUHP_AP_TICK_DYING. On return to the online state, for instance CFS incorrectly assumes that the hrtick is already active, and the chance of the clockevent device to transition to oneshot mode is also lost forever for the CPU, unless it goes back to a lower state than CPUHP_HRTIMERS_PREPARE once. This round-trip reveals another issue; cpu_base.online is not set to 1 after the transition, which appears as a WARN_ON_ONCE in enqueue_hrtimer(). Aside of that, the bulk of the per CPU state is not reset either, which means there are dangling pointers in the worst case. Address this by adding a corresponding startup() callback, which resets the stale per CPU state and sets the online flag. [ tglx: Make the new callback unconditionally available, remove the online modification in the prepare() callback and clear the remaining state in the starting callback instead of the prepare callback ]
CVSS 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-416CVE-2024-57951 is a Use After Free vulnerability
What is Use After Free?
The product references memory after it has been freed, which may cause it to crash, use unexpected values, or execute code. Learn more on MITRE CWE
Affected versions
Linux kernel versions
5.4.264,
5.10.204,
5.15.143,
6.1.68,
6.6.7,
4.19.302,
6.7
and later are affected. Fixed in
5.4.290,
5.10.234,
5.15.177,
6.1.127,
6.6.74,
6.12.11,
6.13
and their respective stable series.
References
The following references provide additional information about CVE-2024-57951 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/14984139f1f2768883332965db566ef26db609e7
-
PatchKernel patch commithttps://git.kernel.org/stable/c/15b453db41d36184cf0ccc21e7df624014ab6a1a
-
PatchKernel patch commithttps://git.kernel.org/stable/c/2f8dea1692eef2b7ba6a256246ed82c365fdc686
Frequently asked questions
-
What is CVE-2024-57951?
CVE-2024-57951 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 , classified as an Use After Free flaw (CWE-416) . It affects Linux kernel versions from 5.4.264 onward and has been patched in 5.4.290, 5.10.234, 5.15.177 and others. CVE-2024-57951 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-57951?
CVE-2024-57951 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2024-57951?
Yes — CVE-2024-57951 has been patched. Fixed versions include 5.4.290, 5.10.234, 5.15.177 and others. If you are running Linux kernel 5.4.264 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-57951 actively exploited?
No — CVE-2024-57951 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Use After Free (CWE-416)?
The product references memory after it has been freed, which may cause it to crash, use unexpected values, or execute code. View CWE-416 on MITRE CWE →