CVE-2022-50095
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
18/06/2025
Last modified:
18/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
posix-cpu-timers: Cleanup CPU timers before freeing them during exec<br />
<br />
Commit 55e8c8eb2c7b ("posix-cpu-timers: Store a reference to a pid not a<br />
task") started looking up tasks by PID when deleting a CPU timer.<br />
<br />
When a non-leader thread calls execve, it will switch PIDs with the leader<br />
process. Then, as it calls exit_itimers, posix_cpu_timer_del cannot find<br />
the task because the timer still points out to the old PID.<br />
<br />
That means that armed timers won&#39;t be disarmed, that is, they won&#39;t be<br />
removed from the timerqueue_list. exit_itimers will still release their<br />
memory, and when that list is later processed, it leads to a<br />
use-after-free.<br />
<br />
Clean up the timers from the de-threaded task before freeing them. This<br />
prevents a reported use-after-free.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.7 (including) | 5.10.137 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.15.61 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.18.18 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.19 (including) | 5.19.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/541840859ace9c2ccebc32fa9e376c7bd3def490
- https://git.kernel.org/stable/c/9e255ed238fc67058df87b0388ad6d4b2ef3a2bd
- https://git.kernel.org/stable/c/b2fc1723eb65abb83e00d5f011de670296af0b28
- https://git.kernel.org/stable/c/e362359ace6f87c201531872486ff295df306d13
- https://git.kernel.org/stable/c/e8cb6e8fd9890780f1bfcf5592889e1b879e779c



