# CVE-2024-49866: tracing/timerlat: Fix a race during cpuhp processing

> 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2024-10-21T18:01:09.284Z
- **Modified:** 2026-08-05T11:40:14.365Z

## Who should check

- Anyone running Linux \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< 322920b53dc11f9c2b33397eb3ae5bc6a175b60d; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< ce25f33ba89d6eefef64157655d318444580fa14; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< a6e9849063a6c8f4cb2f652a437e44e3ed24356c; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< a0d9c0cd5856191e095cf43a2e141b73945b7716; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< f72b451dc75578f644a3019c1489e9ae2c14e6c4; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< 829e0c9f0855f26b3ae830d17b24aec103f7e915
- Anyone running Linux 5.14

## Description

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

tracing/timerlat: Fix a race during cpuhp processing

There is another found exception that the "timerlat/1" thread was
scheduled on CPU0, and lead to timer corruption finally:

\`\`\`
ODEBUG: init active (active state 0) object: ffff888237c2e108 object type: hrtimer hint: timerlat\_irq+0x0/0x220
WARNING: CPU: 0 PID: 426 at lib/debugobjects.c:518 debug\_print\_object+0x7d/0xb0
Modules linked in:
CPU: 0 UID: 0 PID: 426 Comm: timerlat/1 Not tainted 6.11.0-rc7+ \#45
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014
RIP: 0010:debug\_print\_object+0x7d/0xb0
...
Call Trace:
 \<TASK\>
 ? \_\_warn+0x7c/0x110
 ? debug\_print\_object+0x7d/0xb0
 ? report\_bug+0xf1/0x1d0
 ? prb\_read\_valid+0x17/0x20
 ? handle\_bug+0x3f/0x70
 ? exc\_invalid\_op+0x13/0x60
 ? asm\_exc\_invalid\_op+0x16/0x20
 ? debug\_print\_object+0x7d/0xb0
 ? debug\_print\_object+0x7d/0xb0
 ? \_\_pfx\_timerlat\_irq+0x10/0x10
 \_\_debug\_object\_init+0x110/0x150
 hrtimer\_init+0x1d/0x60
 timerlat\_main+0xab/0x2d0
 ? \_\_pfx\_timerlat\_main+0x10/0x10
 kthread+0xb7/0xe0
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork+0x2d/0x40
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork\_asm+0x1a/0x30
 \</TASK\>
\`\`\`

After tracing the scheduling event, it was discovered that the migration
of the "timerlat/1" thread was performed during thread creation. Further
analysis confirmed that it is because the CPU online processing for
osnoise is implemented through workers, which is asynchronous with the
offline processing. When the worker was scheduled to create a thread, the
CPU may has already been removed from the cpu\_online\_mask during the offline
process, resulting in the inability to select the right CPU:

T1                       \| T2
\[CPUHP\_ONLINE\]           \| cpu\_device\_down()
osnoise\_hotplug\_workfn() \|
                         \|     cpus\_write\_lock()
                         \|     takedown\_cpu(1)
                         \|     cpus\_write\_unlock()
\[CPUHP\_OFFLINE\]          \|
    cpus\_read\_lock()     \|
    start\_kthread(1)     \|
    cpus\_read\_unlock()   \|

To fix this, skip online processing if the CPU is already offline.

## Affected and fixed versions

- Linux: \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< 322920b53dc11f9c2b33397eb3ae5bc6a175b60d; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< ce25f33ba89d6eefef64157655d318444580fa14; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< a6e9849063a6c8f4cb2f652a437e44e3ed24356c; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< a0d9c0cd5856191e095cf43a2e141b73945b7716; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< f72b451dc75578f644a3019c1489e9ae2c14e6c4; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< 829e0c9f0855f26b3ae830d17b24aec103f7e915 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 829e0c9f0855f26b3ae830d17b24aec103f7e915 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-49866.md
Affected: Linux >= c8895e271f7994a3ecb13b8a280e39aa53879545, < 322920b53dc11f9c2b33397eb3ae5bc6a175b60d; >= c8895e271f7994a3ecb13b8a280e39aa53879545, < ce25f33ba89d6eefef64157655d318444580fa14; >= c8895e271f7994a3ecb13b8a280e39aa53879545, < a6e9849063a6c8f4cb2f652a437e44e3ed24356c; >= c8895e271f7994a3ecb13b8…
Fixed in: Linux 322920b53dc11f9c2b33397eb3ae5bc6a175b60d, Linux 829e0c9f0855f26b3ae830d17b24aec103f7e915

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-49866 being exploited?

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

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

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

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

Linux \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< 322920b53dc11f9c2b33397eb3ae5bc6a175b60d; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< ce25f33ba89d6eefef64157655d318444580fa14; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< a6e9849063a6c8f4cb2f652a437e44e3ed24356c; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< a0d9c0cd5856191e095cf43a2e141b73945b7716; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< f72b451dc75578f644a3019c1489e9ae2c14e6c4; \>= c8895e271f7994a3ecb13b8a280e39aa53879545, \< 829e0c9f0855f26b3ae830d17b24aec103f7e915; Linux 5.14.

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

Yes. Fixed in Linux 322920b53dc11f9c2b33397eb3ae5bc6a175b60d, Linux 829e0c9f0855f26b3ae830d17b24aec103f7e915. Upgrade Linux to 829e0c9f0855f26b3ae830d17b24aec103f7e915 or later.

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

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/322920b53dc11f9c2b33397eb3ae5bc6a175b60d>
- patch: <https://git.kernel.org/stable/c/ce25f33ba89d6eefef64157655d318444580fa14>
- patch: <https://git.kernel.org/stable/c/a6e9849063a6c8f4cb2f652a437e44e3ed24356c>
- patch: <https://git.kernel.org/stable/c/a0d9c0cd5856191e095cf43a2e141b73945b7716>
- patch: <https://git.kernel.org/stable/c/f72b451dc75578f644a3019c1489e9ae2c14e6c4>
- patch: <https://git.kernel.org/stable/c/829e0c9f0855f26b3ae830d17b24aec103f7e915>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.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-49866>

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