VDB

CVE-2024-46845

CVE-2024-46845 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
linux_kernellinux6.10.10, 6.6.51

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxe88ed227f639ebcb31ed4e5b88756b47d904584b, e88ed227f639ebcb31ed4e5b88756b47d904584b, e88ed227f639ebcb31ed4e5b88756b47d904584b
LinuxLinux6.5, 0, 6.6.51
linuxlinux_kernel6.5, 6.5, 6.5
LinuxLinux*, *, 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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›