CVE-2022-2585
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

An independent security researcher working with SSD Secure Disclosure discovered that this vulnerability could be exploited for Local Privilege Escalation. A proof-of-concept (PoC) that triggers KASAN was announced to be released a week after the initial disclosure (Openwall List).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74732NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-firmware
NoYesAug 22, 2026
CVE-2026-74730NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 22, 2026
CVE-2026-74726NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules
NoYesAug 22, 2026
CVE-2026-74719NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-partner
NoYesAug 22, 2026
CVE-2026-74717NONEN/A
  • Linux Kernel logoLinux Kernel
  • rtla
NoYesAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management