CWE
667
Advisory Published
Updated

CVE-2024-49976: tracing/timerlat: Drop interface_lock in stop_kthread()

First published: Mon Oct 21 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: tracing/timerlat: Drop interface_lock in stop_kthread() stop_kthread() is the offline callback for "trace/osnoise:online", since commit 5bfbcd1ee57b ("tracing/timerlat: Add interface_lock around clearing of kthread in stop_kthread()"), the following ABBA deadlock scenario is introduced: T1 | T2 [BP] | T3 [AP] osnoise_hotplug_workfn() | work_for_cpu_fn() | cpuhp_thread_fun() | _cpu_down() | osnoise_cpu_die() mutex_lock(&interface_lock) | | stop_kthread() | cpus_write_lock() | mutex_lock(&interface_lock) cpus_read_lock() | cpuhp_kick_ap() | As the interface_lock here in just for protecting the "kthread" field of the osn_var, use xchg() instead to fix this issue. Also use for_each_online_cpu() back in stop_per_cpu_kthreads() as it can take cpu_read_lock() again.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=6.6.51<6.6.55
Linux Kernel>=6.10.10<6.10.14
Linux Kernel>=6.11<6.11.3
Linux Kernel=6.12-rc1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-49976?

    CVE-2024-49976 has been rated with medium severity due to its potential impact on system stability.

  • How do I fix CVE-2024-49976?

    To fix CVE-2024-49976, upgrade your Linux kernel to versions later than 6.6.55, 6.10.14, or 6.11.3, or use the appropriate patches provided by the maintainers.

  • Which Linux kernel versions are affected by CVE-2024-49976?

    CVE-2024-49976 affects Linux kernel versions 6.6.51 to 6.6.55, 6.10.10 to 6.10.14, and 6.11 to 6.11.3.

  • What is the impact of CVE-2024-49976?

    The impact of CVE-2024-49976 could potentially involve instability issues during the execution of certain kthread operations.

  • Is CVE-2024-49976 related to kthread operations in the Linux kernel?

    Yes, CVE-2024-49976 is specifically related to the handling of kthread operations in the Linux kernel's tracing component.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203