CVE-2022-50095CWE-416

CVE-2022-50095

High · published June 18, 2025

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

In the Linux kernel, the following vulnerability has been resolved:

posix-cpu-timers: Cleanup CPU timers before freeing them during exec

Commit 55e8c8eb2c7b ("posix-cpu-timers: Store a reference to a pid not a

task") started looking up tasks by PID when deleting a CPU timer.

When a non-leader thread calls execve, it will switch PIDs with the leader

process. Then, as it calls exit_itimers, posix_cpu_timer_del cannot find

the task because the timer still points out to the old PID.

That means that armed timers won't be disarmed, that is, they won't be

removed from the timerqueue_list. exit_itimers will still release their

memory, and when that list is later processed, it leads to a

use-after-free.

Clean up the timers from the de-threaded task before freeing them. This

prevents a reported use-after-free.

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.00258 · 16.6th percentile
Weakness
CWE-416 · Use After Free
Published
2025-06-18T15:15Z
Affected products (4)
ProductVersionsFixed in
linux/linux_kernel≥ 5.7, < 5.10.1375.10.137
linux/linux_kernel≥ 5.11, < 5.15.615.15.61
linux/linux_kernel≥ 5.16, < 5.18.185.18.18
linux/linux_kernel≥ 5.19, < 5.19.25.19.2
References (5)
EPSS history
Timeline
  • 18 JUN 11:02Z
    posix-cpu-timers: Cleanup CPU timers before freeing them during exec
    cvelistv5