CVE-2024-49976
tracing/timerlat: Drop interface_lock in stop_kthread()
Check your servers for CVE-2024-49976
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-49976 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.72% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Oct 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b4fdabffae14cca2c80d99bd81f3f27239ac7f5e, before a4a05ceffe8fad68b45de38fe2311bda619e76e2 affected from 4679272d5252720746fd9c5465352cbc5665f230, before 09cb44cc3d3df7ade2cebc939d6257a2fa8afc7a affected from 5bfbcd1ee57b607fd29e4645c7f350dd385dd9ad, before db8571a9a098086608c11a15856ff585789e67e8 affected from 5bfbcd1ee57b607fd29e4645c7f350dd385dd9ad, before b484a02c9cedf8703eff8f0756f94618004bd165 affected from 6.6.51, before 6.6.55 affected from 6.10.10, before 6.10.14
Other versions: unaffected
|
| Linux |
affected 6.11 unaffected before 6.11 unaffected from 6.6.55 up to and including 6.6.* unaffected from 6.10.14 up to and including 6.10.* unaffected from 6.11.3 up to and including 6.11.* unaffected 6.12 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-49976 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-49976
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-49976
trivy image --scanners vuln IMAGE | grep CVE-2024-49976
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a4a05ceffe8fad68b45de38fe2311bda619e76e2 git.kernel.org
- https://git.kernel.org/stable/c/09cb44cc3d3df7ade2cebc939d6257a2fa8afc7a git.kernel.org
- https://git.kernel.org/stable/c/db8571a9a098086608c11a15856ff585789e67e8 git.kernel.org
- https://git.kernel.org/stable/c/b484a02c9cedf8703eff8f0756f94618004bd165 git.kernel.org
Source: the record CVE-2024-49976 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse