CVE-2024-46845
tracing/timerlat: Only clear timer if a kthread exists
Reported by linux · Published September 27, 2024
In the Linux kernel, the following vulnerability has been resolved: tracing/timerlat: Only clear timer if a kthread exists The timerlat tracer can use user space threads to check for osnoise and timer latency. If the program using this is killed via a SIGTERM, the threads are shutdown one at a time and another tracing instance can start up resetting the threads before they are fully closed. That causes the hrtimer assigned to the kthread to be shutdown and freed twice when the dying thread finally closes the file descriptors, causing a use-after-free bug. Only cancel the hrtimer if the associated thread is still around. Also add the interface_lock around the resetting of the tlat_var->kthread. Note, this is just a quick fix that can be backported to stable. A real fix is to have a better synchronization between the shutdown of old threads and the starting of new ones.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.10.10, 6.6.51 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e88ed227f639ebcb31ed4e5b88756b47d904584b, e88ed227f639ebcb31ed4e5b88756b47d904584b, e88ed227f639ebcb31ed4e5b88756b47d904584b |
| Linux | Linux | 6.5, 0, 6.6.51 |
| linux | linux_kernel | 6.5, 6.5, 6.5 |
| Linux | Linux | *, *, 6.5 |
Timeline
- Sep 27, 2024 CVE Published
- Sep 28, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Jan 4, 2026 Security Advisory (143 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (123 in total, the first dated here)
- Nov 15, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-46845
vulnetix vdb fixes CVE-2024-46845
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-46845/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart