CVE-2022-41222: Use After Free

Published Jul 7, 2021
·
Updated

A flaw use after free found in Linux Kernel mm/mremap memory address space accounting source code. If race condition happens between rmap walk and mremap, this can result in stale TLB entries.

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=97113eb39fa7972722ff490b947d8af023e1f6a2

Other sources

A use-after-free flaw was found in the Linux kernel’s mm/mremap memory address space accounting source code in how a race condition happens between rmap walk and mremap. This flaw allows a local user to crash or potentially escalate their privileges on the system.

mm/mremap.c in the Linux kernel before 5.13.3 has a use-after-free via a stale TLB because an rmap lock is not held during a PUD move.

Affected Software

18 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-425.13.1.rt7.223.el8_7
0:4.18.0-425.13.1.rt7.223.el8_7
redhat/kernel<0:4.18.0-425.13.1.el8_7
0:4.18.0-425.13.1.el8_7
redhat/kernel<0:4.18.0-372.46.1.el8_6
0:4.18.0-372.46.1.el8_6
Google Android
Linux Linux kernel>=5.0<5.4.211
Linux Linux kernel>=5.5<5.10.137
Linux Linux kernel>=5.11<5.12.18
Linux Linux kernel>=5.13<5.13.3
Debian Debian Linux=10.0
NetApp Hci Baseboard Management Controller=h300s
NetApp Hci Baseboard Management Controller=h410c
NetApp Hci Baseboard Management Controller=h410s
NetApp Hci Baseboard Management Controller=h500s
NetApp Hci Baseboard Management Controller=h700s
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Canonical Ubuntu Linux=22.04
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:4.18.0-425.13.1.rt7.223.el8_7
  2. Upgrade

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

    Fixed in 0:4.18.0-425.13.1.el8_7
  3. Upgrade

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

    Fixed in 0:4.18.0-372.46.1.el8_6
  4. Upgrade

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

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
  5. Upgrade

    Upgrade linux kernel to a version that resolves this vulnerability.

    Fixed in 5.13.3
  6. Compensating control

    To reduce risk from stale TLB entries caused by the rmap walk vs mremap race, consider restricting local (unprivileged) user access to affected systems until the kernel is updated to 5.13.3 or later.

Event History

Jul 7, 2021
CVE Published
09:00 AM
Sep 21, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 31, 2022
Data Sourced
via Red Hat·11:00 AM
DescriptionSeverityAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:11 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·04:49 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-41222?

CVE-2022-41222 has been assigned a medium severity rating due to its potential impact on memory management in the Linux Kernel.

2

How do I fix CVE-2022-41222?

To fix CVE-2022-41222, update the Linux Kernel to the recommended versions or later: 0:4.18.0-425.13.1.rt7.223.el8_7, 0:4.18.0-425.13.1.el8_7, or other specified versions.

3

Which Linux distributions are affected by CVE-2022-41222?

CVE-2022-41222 affects various distributions, including certain versions of Red Hat, Ubuntu, and Debian based on the Linux Kernel.

4

What types of systems are vulnerable due to CVE-2022-41222?

Systems running the affected versions of the Linux Kernel, including servers and desktop environments, are at risk from CVE-2022-41222.

5

Are there any workarounds for CVE-2022-41222?

There are no recommended workarounds for CVE-2022-41222; the best action is to apply the available patches.

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