CVE-2022-2585: Use After Free

Published Aug 3, 2022
·
Updated

A use-after-free flaw was found in the Linux kernel’s POSIX CPU timers functionality in the way a user creates and then deletes the timer in the non-leader thread of the program. This flaw allows a local user to crash or potentially escalate their privileges on the system.

Other sources

It was discovered that when exec'ing from a non-leader thread armed POSIX CPU timers would be left on a list but freed leading to a use-after-free.

Microsoft

It was discovered that when exec'ing from a non-leader thread, armed POSIX CPU timers would be left on a list but freed, leading to a use-after-free.

Launchpad

Affected Software

13 affected componentsFixes available
redhat/kernel<0:5.14.0-70.30.1.el9_0
0:5.14.0-70.30.1.el9_0
redhat/kernel-rt<0:5.14.0-70.30.1.rt21.102.el9_0
0:5.14.0-70.30.1.rt21.102.el9_0
Linux Linux kernel>=5.7<5.10.137
Linux Linux kernel>=5.11<5.15.61
Linux Linux kernel>=5.16<5.18.18
Linux Linux kernel>=5.19<5.19.2
Canonical Ubuntu Linux=20.04
Canonical Ubuntu Linux=22.04
Microsoft cbl2 kernel 5.15.162.2-1
Microsoft cbl2 kernel 5.15.162.2-1
Microsoft cbl2 kernel 5.15.153.1-1
redhat/kernel<6.0
6.0
debian/linux
6.1.176-16.1.180-16.12.94-16.12.107-17.1.12-17.1.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:5.14.0-70.30.1.el9_0
  2. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:5.14.0-70.30.1.rt21.102.el9_0
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.0
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.180-1Fixed in 6.12.94-1Fixed in 6.12.107-1Fixed in 7.1.12-1Fixed in 7.1.13-1

Event History

Aug 3, 2022
Data Sourced
via Red Hat·12:33 PM
DescriptionSeverityAffected Software
Aug 9, 2022
CVE Published
05:00 PM
Jan 8, 2024
CVE Published
via MITRE·05:38 PM
Data Sourced
via MITRE·05:38 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:07 AM
Description
Jan 21, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
SeverityAffected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Jul 4, 2026
Data Sourced
via Ubuntu·11:29 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2026
Data Sourced
via Debian·12:58 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2022-2585?

CVE-2022-2585 is considered to have a high severity due to its potential for privilege escalation and system crashes.

2

How do I fix CVE-2022-2585?

To address CVE-2022-2585, update your kernel to the latest available version as specified in the vulnerability report.

3

Which systems are vulnerable to CVE-2022-2585?

CVE-2022-2585 affects various versions of the Linux kernel, specifically versions between 5.7 and 5.19.

4

Can CVE-2022-2585 be exploited remotely?

CVE-2022-2585 requires local access for exploitation, making it less of a remote threat but still critical for local users.

5

Is there a workaround for CVE-2022-2585?

Currently, the recommended approach is to apply the latest patches instead of relying on any workarounds for CVE-2022-2585.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203