# CVE-2025-21816: hrtimers: Force migrate away hrtimers queued after CPUHP\_AP\_HRTIMERS\_DYING

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-02-27T20:04:15.356Z
- **Modified:** 2026-06-17T08:44:21.987Z

## Who should check

- Anyone running Linux \>= 75b5016ce325f1ef9c63e5398a1064cf8a7a7354, \< 82ac6adbbb2aad14548a71d5e2e37f4964a15e38; \>= 53f408cad05bb987af860af22f4151e5a18e6ee8, \< 63815bef47ec25f5a125019ca480882481ee1553; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< e456a88bddae4030ba962447bb84be6669f2a0c1; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 2aecec58e9040ce3d2694707889f9914a2374955; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 53dac345395c0d2493cbc2f4c85fe38aef5b63f5; 9a2fc41acb69dd4e2a58d0c04346c3333c2341fc; 54d0d83a53508d687fd4a225f8aa1f18559562d0; 7f4c89400d2997939f6971c7981cc780a219e36b; 6fcbcc6c8e52650749692c7613cbe71bf601670d; \>= 6.1.68, \< 6.1.141; …
- Anyone running Linux 6.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

hrtimers: Force migrate away hrtimers queued after CPUHP\_AP\_HRTIMERS\_DYING

hrtimers are migrated away from the dying CPU to any online target at
the CPUHP\_AP\_HRTIMERS\_DYING stage in order not to delay bandwidth timers
handling tasks involved in the CPU hotplug forward progress.

However wakeups can still be performed by the outgoing CPU after
CPUHP\_AP\_HRTIMERS\_DYING. Those can result again in bandwidth timers being
armed. Depending on several considerations (crystal ball power management
based election, earliest timer already enqueued, timer migration enabled or
not), the target may eventually be the current CPU even if offline. If that
happens, the timer is eventually ignored.

The most notable example is RCU which had to deal with each and every of
those wake-ups by deferring them to an online CPU, along with related
workarounds:

\_ e787644caf76 (rcu: Defer RCU kthreads wakeup when CPU is dying)
\_ 9139f93209d1 (rcu/nocb: Fix RT throttling hrtimer armed from offline CPU)
\_ f7345ccc62a4 (rcu/nocb: Fix rcuog wake-up from offline softirq)

The problem isn't confined to RCU though as the stop machine kthread
(which runs CPUHP\_AP\_HRTIMERS\_DYING) reports its completion at the end
of its work through cpu\_stop\_signal\_done() and performs a wake up that
eventually arms the deadline server timer:

   WARNING: CPU: 94 PID: 588 at kernel/time/hrtimer.c:1086 hrtimer\_start\_range\_ns+0x289/0x2d0
   CPU: 94 UID: 0 PID: 588 Comm: migration/94 Not tainted
   Stopper: multi\_cpu\_stop+0x0/0x120 \<- stop\_machine\_cpuslocked+0x66/0xc0
   RIP: 0010:hrtimer\_start\_range\_ns+0x289/0x2d0
   Call Trace:
   \<TASK\>
     start\_dl\_timer
     enqueue\_dl\_entity
     dl\_server\_start
     enqueue\_task\_fair
     enqueue\_task
     ttwu\_do\_activate
     try\_to\_wake\_up
     complete
     cpu\_stopper\_thread

Instead of providing yet another bandaid to work around the situation, fix
it in the hrtimers infrastructure instead: always migrate away a timer to
an online target whenever it is enqueued from an offline CPU.

This will also allow to revert all the above RCU disgraceful hacks.

## Affected and fixed versions

- Linux: \>= 75b5016ce325f1ef9c63e5398a1064cf8a7a7354, \< 82ac6adbbb2aad14548a71d5e2e37f4964a15e38; \>= 53f408cad05bb987af860af22f4151e5a18e6ee8, \< 63815bef47ec25f5a125019ca480882481ee1553; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< e456a88bddae4030ba962447bb84be6669f2a0c1; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 2aecec58e9040ce3d2694707889f9914a2374955; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 53dac345395c0d2493cbc2f4c85fe38aef5b63f5; 9a2fc41acb69dd4e2a58d0c04346c3333c2341fc; 54d0d83a53508d687fd4a225f8aa1f18559562d0; 7f4c89400d2997939f6971c7981cc780a219e36b; 6fcbcc6c8e52650749692c7613cbe71bf601670d; \>= 6.1.68, \< 6.1.141; … (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-2025-21816. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21816.md
Affected: Linux >= 75b5016ce325f1ef9c63e5398a1064cf8a7a7354, < 82ac6adbbb2aad14548a71d5e2e37f4964a15e38; >= 53f408cad05bb987af860af22f4151e5a18e6ee8, < 63815bef47ec25f5a125019ca480882481ee1553; >= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, < e456a88bddae4030ba962447bb84be6669f2a0c1; >= 5c0930ccaad5a74d74e8b18…
Fixed in: Linux 82ac6adbbb2aad14548a71d5e2e37f4964a15e38, Linux 63815bef47ec25f5a125019ca480882481ee1553, Linux 2aecec58e9040ce3d2694707889f9914a2374955, Linux 53dac345395c0d2493cbc2f4c85fe38aef5b63f5, Linux 6.1.141

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-2025-21816 being exploited?

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

### How serious is CVE-2025-21816?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21816?

Linux \>= 75b5016ce325f1ef9c63e5398a1064cf8a7a7354, \< 82ac6adbbb2aad14548a71d5e2e37f4964a15e38; \>= 53f408cad05bb987af860af22f4151e5a18e6ee8, \< 63815bef47ec25f5a125019ca480882481ee1553; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< e456a88bddae4030ba962447bb84be6669f2a0c1; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 2aecec58e9040ce3d2694707889f9914a2374955; \>= 5c0930ccaad5a74d74e8b18b648c5eb21ed2fe94, \< 53dac345395c0d2493cbc2f4c85fe38aef5b63f5; 9a2fc41acb69dd4e2a58d0c04346c3333c2341fc; 54d0d83a53508d687fd4a225f8aa1f18559562d0; 7f4c89400d2997939f6971c7981cc780a219e36b; 6fcbcc6c8e52650749692c7613cbe71bf601670d; \>= 6.1.68, \< 6.1.141; …; Linux 6.7.

### Is there a fix for CVE-2025-21816?

Yes. Fixed in Linux 82ac6adbbb2aad14548a71d5e2e37f4964a15e38, Linux 63815bef47ec25f5a125019ca480882481ee1553, Linux 2aecec58e9040ce3d2694707889f9914a2374955, Linux 53dac345395c0d2493cbc2f4c85fe38aef5b63f5, Linux 6.1.141. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21816?

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/82ac6adbbb2aad14548a71d5e2e37f4964a15e38>
- patch: <https://git.kernel.org/stable/c/63815bef47ec25f5a125019ca480882481ee1553>
- patch: <https://git.kernel.org/stable/c/e456a88bddae4030ba962447bb84be6669f2a0c1>
- patch: <https://git.kernel.org/stable/c/2aecec58e9040ce3d2694707889f9914a2374955>
- patch: <https://git.kernel.org/stable/c/53dac345395c0d2493cbc2f4c85fe38aef5b63f5>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.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-2025-21816>

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