CVE-2024-46845CWE-416

CVE-2024-46845

High · published September 27, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
14.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00237 · 14.0th percentile
Weakness
CWE-416 · Use After Free
Published
2024-09-27T17:15Z
Affected products (8)
ProductVersionsFixed in
linux/linux_kernel≥ 6.5, < 6.6.516.6.51
linux/linux_kernel≥ 6.7, < 6.10.106.10.10
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (3)
EPSS history
Timeline
  • 27 SEP 12:39Z
    tracing/timerlat: Only clear timer if a kthread exists
    cvelistv5