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 Software | Affected Version | How 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 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-49976 has been rated with medium severity due to its potential impact on system stability.
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.
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.
The impact of CVE-2024-49976 could potentially involve instability issues during the execution of certain kthread operations.
Yes, CVE-2024-49976 is specifically related to the handling of kthread operations in the Linux kernel's tracing component.