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

Published Oct 21, 2024
·
Updated

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: timerlatirq+0x0/0x220 WARNING: CPU: 0 PID: 426 at lib/debugobjects.c:518 debugprintobject+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:debugprintobject+0x7d/0xb0 ... Call Trace: <TASK> ? warn+0x7c/0x110 ? debugprintobject+0x7d/0xb0 ? reportbug+0xf1/0x1d0 ? prbreadvalid+0x17/0x20 ? handlebug+0x3f/0x70 ? excinvalidop+0x13/0x60 ? asmexcinvalidop+0x16/0x20 ? debugprintobject+0x7d/0xb0 ? debugprintobject+0x7d/0xb0 ? pfxtimerlatirq+0x10/0x10 debugobjectinit+0x110/0x150 hrtimerinit+0x1d/0x60 timerlatmain+0xab/0x2d0 ? pfxtimerlatmain+0x10/0x10 kthread+0xb7/0xe0 ? pfxkthread+0x10/0x10 retfromfork+0x2d/0x40 ? pfxkthread+0x10/0x10 retfromforkasm+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 cpuonlinemask during the offline process, resulting in the inability to select the right CPU:

T1 | T2 [CPUHPONLINE] | cpudevicedown() osnoisehotplugworkfn() | | cpuswritelock() | takedowncpu(1) | cpuswriteunlock() [CPUHPOFFLINE] | cpusreadlock() | startkthread(1) | cpusreadunlock() |

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

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=5.14<5.15.168
Linux Linux kernel>=5.16<6.1.113
Linux Linux kernel>=6.2<6.6.55
Linux Linux kernel>=6.7<6.10.14
Linux Linux kernel>=6.11<6.11.3
Linux Linux kernel=6.12-rc1
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1
debian/linux-6.1
6.1.129-1~deb11u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
  2. Upgrade

    Upgrade debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.129-1~deb11u1
  3. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 6.11.0-rc7+
  4. Configuration

    In tracing/timerlat cpuhp (CPUHP_ONLINE), skip online processing/work scheduling when the target CPU is already offline to avoid the cpuhp race where the CPU is removed from cpu_online_mask during offline processing.

    Linux kernel cpuhp processing (tracing/timerlat) skip online processing if CPU is already offline = true

Event History

Oct 21, 2024
CVE Published
via MITRE·06:01 PM
Data Sourced
via MITRE·06:01 PM
DescriptionSeverity
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 12, 2025
Data Sourced
via Launchpad·05:17 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·06:25 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-49866?

CVE-2024-49866 has a high severity rating due to potential race conditions leading to timer corruption in the Linux kernel.

2

How do I fix CVE-2024-49866?

To fix CVE-2024-49866, update the Linux kernel to versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.15-1.

3

Which Linux kernel versions are affected by CVE-2024-49866?

CVE-2024-49866 affects Linux kernel versions from 5.14 to 6.11.3, and specific versions like 6.12-rc1.

4

Is there a workaround for CVE-2024-49866 if I can't update the kernel?

A reliable workaround for CVE-2024-49866 is not available, hence updating to a patched kernel version is strongly recommended.

5

How does CVE-2024-49866 impact system performance?

CVE-2024-49866 can lead to timer corruption, which may result in degraded system performance and stability issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203