{"id":"CVE-2024-49976","state":"PUBLISHED","title":"tracing/timerlat: Drop interface_lock in stop_kthread()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing/timerlat: Drop interface_lock in stop_kthread()\n\nstop_kthread() is the offline callback for \"trace/osnoise:online\", since\ncommit 5bfbcd1ee57b (\"tracing/timerlat: Add interface_lock around clearing\nof kthread in stop_kthread()\"), the following ABBA deadlock scenario is\nintroduced:\n\nT1                            | T2 [BP]               | T3 [AP]\nosnoise_hotplug_workfn()      | work_for_cpu_fn()     | cpuhp_thread_fun()\n                              |   _cpu_down()         |   osnoise_cpu_die()\n  mutex_lock(&interface_lock) |                       |     stop_kthread()\n                              |     cpus_write_lock() |       mutex_lock(&interface_lock)\n  cpus_read_lock()            |     cpuhp_kick_ap()   |\n\nAs the interface_lock here in just for protecting the \"kthread\" field of\nthe osn_var, use xchg() instead to fix this issue. Also use\nfor_each_online_cpu() back in stop_per_cpu_kthreads() as it can take\ncpu_read_lock() again.","publishedAt":"2024-10-21T18:02:23.774Z","updatedAt":"2026-05-23T15:54:11.904Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b4fdabffae14cca2c80d99bd81f3f27239ac7f5e","status":"affected","lessThan":"a4a05ceffe8fad68b45de38fe2311bda619e76e2","versionType":"git"},{"version":"4679272d5252720746fd9c5465352cbc5665f230","status":"affected","lessThan":"09cb44cc3d3df7ade2cebc939d6257a2fa8afc7a","versionType":"git"},{"version":"5bfbcd1ee57b607fd29e4645c7f350dd385dd9ad","status":"affected","lessThan":"db8571a9a098086608c11a15856ff585789e67e8","versionType":"git"},{"version":"5bfbcd1ee57b607fd29e4645c7f350dd385dd9ad","status":"affected","lessThan":"b484a02c9cedf8703eff8f0756f94618004bd165","versionType":"git"},{"version":"6.6.51","status":"affected","lessThan":"6.6.55","versionType":"semver"},{"version":"6.10.10","status":"affected","lessThan":"6.10.14","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/trace_osnoise.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.6.55","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.14","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11.3","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/trace_osnoise.c"]}],"references":["https://git.kernel.org/stable/c/a4a05ceffe8fad68b45de38fe2311bda619e76e2","https://git.kernel.org/stable/c/09cb44cc3d3df7ade2cebc939d6257a2fa8afc7a","https://git.kernel.org/stable/c/db8571a9a098086608c11a15856ff585789e67e8","https://git.kernel.org/stable/c/b484a02c9cedf8703eff8f0756f94618004bd165"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/49xxx/CVE-2024-49976.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-49976","state":"PUBLISHED","datePublished":"2024-10-21T18:02:23.774Z","dateUpdated":"2026-05-23T15:54:11.904Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T12:17:06.052Z"},"containers":{"cna":{"title":"tracing/timerlat: Drop interface_lock in stop_kthread()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing/timerlat: Drop interface_lock in stop_kthread()\n\nstop_kthread() is the offline callback for \"trace/osnoise:online\", since\ncommit 5bfbcd1ee57b (\"tracing/timerlat: Add interface_lock around clearing\nof kthread in stop_kthread()\"), the following ABBA deadlock scenario is\nintroduced:\n\nT1                            | T2 [BP]               | T3 [AP]\nosnoise_hotplug_workfn()      | work_for_cpu_fn()     | cpuhp_thread_fun()\n                              |   _cpu_down()         |   osnoise_cpu_die()\n  mutex_lock(&interface_lock) |                       |     stop_kthread()\n                              |     cpus_write_lock() |       mutex_lock(&interface_lock)\n  cpus_read_lock()            |     cpuhp_kick_ap()   |\n\nAs the interface_lock here in just for protecting the \"kthread\" field of\nthe osn_var, use xchg() instead to fix this issue. Also use\nfor_each_online_cpu() back in stop_per_cpu_kthreads() as it can take\ncpu_read_lock() again."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b4fdabffae14cca2c80d99bd81f3f27239ac7f5e","status":"affected","lessThan":"a4a05ceffe8fad68b45de38fe2311bda619e76e2","versionType":"git"},{"version":"4679272d5252720746fd9c5465352cbc5665f230","status":"affected","lessThan":"09cb44cc3d3df7ade2cebc939d6257a2fa8afc7a","versionType":"git"},{"version":"5bfbcd1ee57b607fd29e4645c7f350dd385dd9ad","status":"affected","lessThan":"db8571a9a098086608c11a15856ff585789e67e8","versionType":"git"},{"version":"5bfbcd1ee57b607fd29e4645c7f350dd385dd9ad","status":"affected","lessThan":"b484a02c9cedf8703eff8f0756f94618004bd165","versionType":"git"},{"version":"6.6.51","status":"affected","lessThan":"6.6.55","versionType":"semver"},{"version":"6.10.10","status":"affected","lessThan":"6.10.14","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/trace_osnoise.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.6.55","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.14","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11.3","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/trace_osnoise.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a4a05ceffe8fad68b45de38fe2311bda619e76e2"},{"url":"https://git.kernel.org/stable/c/09cb44cc3d3df7ade2cebc939d6257a2fa8afc7a"},{"url":"https://git.kernel.org/stable/c/db8571a9a098086608c11a15856ff585789e67e8"},{"url":"https://git.kernel.org/stable/c/b484a02c9cedf8703eff8f0756f94618004bd165"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:54:11.904Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.51","versionEndExcluding":"6.6.55"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10.10","versionEndExcluding":"6.10.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.11.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-49976","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-10-22T13:33:08.568915Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-22T13:38:45.341Z"}}]}}}