# CVE-2024-57951: hrtimers: Handle CPU state correctly on hotplug

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-12T13:27:53.124Z
- **Modified:** 2026-10-15T02:17:13.857Z

## Who should check

- Anyone running Linux \>= 54d0d83a53508d687fd4a225f8aa1f18559562d0, \< 95e4f62df23f4df1ce6ef897d44b8e23c260921a; \>= 7f4c89400d2997939f6971c7981cc780a219e36b, \< 14984139f1f2768883332965db566ef26db609e7; \>= 6fcbcc6c8e52650749692c7613cbe71bf601670d, \< 15b453db41d36184cf0ccc21e7df624014ab6a1a; \>= 75b5016ce325f1ef9c63e5398a1064cf8a7a7354, \< 3d41dbf82e10c44e53ea602398ab002baec27e75; \>= 53f408cad05bb987af860af22f4151e5a18e6ee8, \< a5cbbea145b400e40540c34816d16d36e0374fbc; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 38492f6ee883c7b1d33338bf531a62cff69b4b28; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 2f8dea1692eef2b7ba6a256246ed82c365fdc686; 9a2fc41acb69dd4e2a58d0c04346c3333c2341fc; \>= 5.4.264, \< 5.4.290; \>= 5.10.204, \< 5.10.234; …
- Anyone running Linux 6.7

## Description

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

## Affected and fixed versions

- Linux: \>= 54d0d83a53508d687fd4a225f8aa1f18559562d0, \< 95e4f62df23f4df1ce6ef897d44b8e23c260921a; \>= 7f4c89400d2997939f6971c7981cc780a219e36b, \< 14984139f1f2768883332965db566ef26db609e7; \>= 6fcbcc6c8e52650749692c7613cbe71bf601670d, \< 15b453db41d36184cf0ccc21e7df624014ab6a1a; \>= 75b5016ce325f1ef9c63e5398a1064cf8a7a7354, \< 3d41dbf82e10c44e53ea602398ab002baec27e75; \>= 53f408cad05bb987af860af22f4151e5a18e6ee8, \< a5cbbea145b400e40540c34816d16d36e0374fbc; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 38492f6ee883c7b1d33338bf531a62cff69b4b28; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 2f8dea1692eef2b7ba6a256246ed82c365fdc686; 9a2fc41acb69dd4e2a58d0c04346c3333c2341fc; \>= 5.4.264, \< 5.4.290; \>= 5.10.204, \< 5.10.234; … (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-57951. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-57951.md
Affected: Linux >= 54d0d83a53508d687fd4a225f8aa1f18559562d0, < 95e4f62df23f4df1ce6ef897d44b8e23c260921a; >= 7f4c89400d2997939f6971c7981cc780a219e36b, < 14984139f1f2768883332965db566ef26db609e7; >= 6fcbcc6c8e52650749692c7613cbe71bf601670d, < 15b453db41d36184cf0ccc21e7df624014ab6a1a; >= 75b5016ce325f1ef9c63e53…
Fixed in: Linux 95e4f62df23f4df1ce6ef897d44b8e23c260921a, Linux 14984139f1f2768883332965db566ef26db609e7, Linux 15b453db41d36184cf0ccc21e7df624014ab6a1a, Linux 3d41dbf82e10c44e53ea602398ab002baec27e75, Linux 38492f6ee883c7b1d33338bf531a62cff69b4b28, Linux 2f8dea1692eef2b7ba6a256246ed82c365fdc686, Linux 5.4.2…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-57951 being exploited?

There is no confirmed exploitation: CVE-2024-57951 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-57951?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-57951?

Linux \>= 54d0d83a53508d687fd4a225f8aa1f18559562d0, \< 95e4f62df23f4df1ce6ef897d44b8e23c260921a; \>= 7f4c89400d2997939f6971c7981cc780a219e36b, \< 14984139f1f2768883332965db566ef26db609e7; \>= 6fcbcc6c8e52650749692c7613cbe71bf601670d, \< 15b453db41d36184cf0ccc21e7df624014ab6a1a; \>= 75b5016ce325f1ef9c63e5398a1064cf8a7a7354, \< 3d41dbf82e10c44e53ea602398ab002baec27e75; \>= 53f408cad05bb987af860af22f4151e5a18e6ee8, \< a5cbbea145b400e40540c34816d16d36e0374fbc; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 38492f6ee883c7b1d33338bf531a62cff69b4b28; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 2f8dea1692eef2b7ba6a256246ed82c365fdc686; 9a2fc41acb69dd4e2a58d0c04346c3333c2341fc; \>= 5.4.264, \< 5.4.290; \>= 5.10.204, \< 5.10.234; …; Linux 6.7.

### Is there a fix for CVE-2024-57951?

Yes. Fixed in Linux 95e4f62df23f4df1ce6ef897d44b8e23c260921a, Linux 14984139f1f2768883332965db566ef26db609e7, Linux 15b453db41d36184cf0ccc21e7df624014ab6a1a, Linux 3d41dbf82e10c44e53ea602398ab002baec27e75, Linux 38492f6ee883c7b1d33338bf531a62cff69b4b28, Linux 2f8dea1692eef2b7ba6a256246ed82c365fdc686, Linux 5.4.290, Linux 5.10.234. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-57951?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/95e4f62df23f4df1ce6ef897d44b8e23c260921a>
- patch: <https://git.kernel.org/stable/c/14984139f1f2768883332965db566ef26db609e7>
- patch: <https://git.kernel.org/stable/c/15b453db41d36184cf0ccc21e7df624014ab6a1a>
- patch: <https://git.kernel.org/stable/c/3d41dbf82e10c44e53ea602398ab002baec27e75>
- patch: <https://git.kernel.org/stable/c/a5cbbea145b400e40540c34816d16d36e0374fbc>
- patch: <https://git.kernel.org/stable/c/38492f6ee883c7b1d33338bf531a62cff69b4b28>
- patch: <https://git.kernel.org/stable/c/2f8dea1692eef2b7ba6a256246ed82c365fdc686>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-57951>

HTML: <https://flawdb.com/CVE-2024-57951> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-57951>
