CVE-2024-57951

High

In 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 ]

Package Linux Kernel
Published 2025-02-12
Last modified 2026-05-12
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

7.8

out of 10
High
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness type

CWE-416

CVE-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.

Affected from
≥ 5.4.264 ≥ 5.10.204 ≥ 5.15.143 ≥ 6.1.68 ≥ 6.6.7 ≥ 4.19.302 ≥ 6.7
Fixed in
✓ 5.4.290 5.4.x ✓ 5.10.234 5.10.x ✓ 5.15.177 5.15.x ✓ 6.1.127 6.1.x ✓ 6.6.74 6.6.x ✓ 6.12.11 6.12.x ✓ 6.13

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.

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 →