Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2022-2585: Linux Kernel POSIX CPU Timer Use-After-Free

Published Jan 8, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS1.3%71st percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
LinuxCanonical
IdentifiersCVE-2022-2585CWE-416 · Use After Free

CVE-2022-2585 is a use-after-free vulnerability in Linux kernel POSIX CPU timer handling. When a process executes from a non-leader thread, armed POSIX CPU timers can remain linked on a list after they have been freed, creating a dangling-pointer condition.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation may lead to local privilege escalation.

Mitigation

If you can’t patch tonight, do this now.

No specific configuration-only workaround is established. Until patched, restrict untrusted local code execution and access to multi-user systems, containers, and workloads where unprivileged users can execute processes. Apply least-privilege controls to limit the impact of a successful local privilege-escalation attempt.

Remediation

Patch, then assume compromise.

Install the updated Linux kernel packages supplied for the affected distribution or product channel, then reboot the system for the kernel update to take effect. For Red Hat Enterprise Linux 9, updates were supplied through RHSA-2022:7318, RHSA-2022:7319, and RHSA-2022:7330.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
2022-LPE-UAFThis repository contains proof-of-concept (POC) exploit code for three Linux kernel vulnerabilities: CVE-2022-2585, CVE-2022-2586, and CVE-2022-2588. The structure includes three C source files (CVE-2022-2585.c, CVE-2022-2586.c, dirtycred.c) and a README.md file. Each C file targets a specific kernel vulnerability: - CVE-2022-2585.c demonstrates a UAF in POSIX CPU timers by manipulating timer objects and process forking/cloning. - CVE-2022-2586.c exploits a UAF in the netfilter nf_tables subsystem by creating and deleting tables, sets, and objects via netlink sockets, using the libmnl and libnftnl libraries. - dirtycred.c (related to CVE-2022-2588) targets a UAF in the cls_route traffic control filter, using raw netlink messages to manipulate kernel networking structures. All exploits are local privilege escalation POCs and require the attacker to execute code on a vulnerable Linux system. The README provides references to the original advisories and research papers. No weaponized payloads are included; the code is intended for research and demonstration purposes.pirenga · Disclosed Aug 23, 2022 · c · markdown · localPoC2022-LPE-UAFThis repository contains three proof-of-concept (PoC) exploits targeting use-after-free (UAF) vulnerabilities in the Linux kernel, specifically CVE-2022-2585 (POSIX CPU timer UAF), CVE-2022-2586 (nf_tables cross-table reference UAF), and CVE-2022-2588 (cls_route UAF). The structure consists of three C source files, each corresponding to one CVE, and a README.md providing context and references. The exploits are local privilege escalation PoCs that interact directly with kernel interfaces (such as netlink sockets and kernel objects) to trigger UAF conditions. No weaponized payloads are included; the code is intended for research and demonstration purposes. The endpoints involved are local files, netlink sockets, and kernel objects/tables. The repository is suitable for researchers or defenders seeking to understand or test these vulnerabilities on affected Linux systems.konoha279 · Disclosed Aug 24, 2022 · c · markdown · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CanonicalUbuntu Linuxoperating_system
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2022-2585 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2022-2585 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2022-2585?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2022-2585, the earliest disclosed Aug 23, 2022.
Is there a patch for CVE-2022-2585?
Install the updated Linux kernel packages supplied for the affected distribution or product channel, then reboot the system for the kernel update to take effect. For Red Hat Enterprise Linux 9, updates were supplied through RHSA-2022:7318, RHSA-2022:7319, and RHSA-2022:7330.
What products are affected by CVE-2022-2585?
Linux Kernel and Canonical Ubuntu Linux.
How severe is CVE-2022-2585?
CVE-2022-2585 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 1.3% (71st percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.