
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-2585 is a use-after-free vulnerability discovered in the Linux kernel's POSIX CPU timers functionality. The vulnerability was introduced in Linux kernel version 5.7-rc1 through commit 55e8c8eb2c7b ("posix-cpu-timers: Store a reference to a pid not a task"). The issue occurs when executing from a non-leader thread, where armed POSIX CPU timers would be left on a list but freed, leading to a use-after-free condition (Openwall List).
The vulnerability stems from a flaw in how the kernel handles POSIX CPU timers during thread execution. When a non-leader thread calls execve, it switches PIDs with the leader process. During this process, when exit_itimers is called, posix_cpu_timer_del cannot find the task because the timer still points to the old PID. This results in armed timers not being disarmed (removed from the timerqueue_list) while their memory is freed, leading to a use-after-free condition. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 HIGH by NIST NVD, while Canonical Ltd. assessed it with a score of 5.3 MEDIUM (NVD).
The vulnerability can be exploited by a local attacker to cause a denial of service (system crash) or execute arbitrary code. The issue affects systems running Linux kernel versions from 5.7 up to versions before 5.19.2 (Ubuntu Security).
A fix for the vulnerability was developed and submitted to the Linux kernel mailing list. The patch involves cleaning up the CPU timers from the de-threaded task before freeing them, which prevents the use-after-free condition. The fix was implemented in various Linux distributions including Ubuntu 22.04 LTS and 20.04 LTS through kernel updates (Kernel Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."