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

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-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-oracle
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesJan 05, 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