CVE-2022-50095

HIGH

Linux Kernel 5.7-5.10.136 5.11-5.15.60 5.16-5.18.17 5.19.0-5.19.1 - Use-After-Free in posix-cpu-timers

Title source: llm
STIX 2.1

Description

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.

Scores

CVSS v3 7.8
EPSS 0.0021
EPSS Percentile 10.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-416
Status published
Products (17)
linux/Kernel 5.11.0 - 5.15.61linux
linux/Kernel 5.16.0 - 5.18.18linux
linux/Kernel 5.19.0 - 5.19.2linux
linux/Kernel 5.7.0 - 5.10.137linux
Linux/Linux < 5.7
Linux/Linux 5.10.137 - 5.10.*
Linux/Linux 5.15.61 - 5.15.*
Linux/Linux 5.18.18 - 5.18.*
Linux/Linux 5.19.2 - 5.19.*
Linux/Linux 5.7
... and 7 more
Published Jun 18, 2025
Tracked Since Feb 18, 2026