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.

In movepagetables of mremap.c, there is a possible memory corruption due to improper locking. This could lead to local escalation of privilege in the kernel with no additional execution privileges needed. User interaction is not needed for exploitation.

— OSV

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

92 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
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
Google Android
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-5.4<5.4.0-1089.97~18.04.1
5.4.0-1089.97~18.04.1
ubuntu/linux-azure-5.4<5.4.0-1095.101~18.04.1
5.4.0-1095.101~18.04.1
ubuntu/linux-gcp-5.4<5.4.0-1093.102~18.04.1
5.4.0-1093.102~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-132.148~18.04.1
5.4.0-132.148~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1037.42~18.04.1
5.4.0-1037.42~18.04.1
ubuntu/linux-oracle-5.4<5.4.0-1087.96~18.04.1
5.4.0-1087.96~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1074.85~18.04.1
5.4.0-1074.85~18.04.1
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux<5.4.0-132.148
5.4.0-132.148
ubuntu/linux-aws<5.4.0-1089.97
5.4.0-1089.97
ubuntu/linux-azure<5.4.0-1095.101
5.4.0-1095.101
ubuntu/linux-bluefield<5.4.0-1050.56
5.4.0-1050.56
ubuntu/linux-gcp<5.4.0-1093.102
5.4.0-1093.102
ubuntu/linux-gke<5.4.0-1087.94
5.4.0-1087.94
ubuntu/linux-gkeop<5.4.0-1057.61
5.4.0-1057.61
ubuntu/linux-ibm<5.4.0-1037.42
5.4.0-1037.42
ubuntu/linux-iot<5.4.0-1006.8
5.4.0-1006.8
ubuntu/linux-kvm<5.4.0-1079.85
5.4.0-1079.85
ubuntu/linux-oracle<5.4.0-1087.96
5.4.0-1087.96
ubuntu/linux-raspi<5.4.0-1074.85
5.4.0-1074.85
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1089.97+fips1
5.4.0-1089.97+fips1
ubuntu/linux-azure-fips<5.4.0-1095.101+fips1
5.4.0-1095.101+fips1
ubuntu/linux-fips<5.4.0-1065.74
5.4.0-1065.74
ubuntu/linux-gcp-fips<5.4.0-1093.102+fips1
5.4.0-1093.102+fips1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
debian/linux<5.14.6-1
5.14.6-1
debian/linux<5.14.6-1
5.14.6-1
debian/linux<5.14.6-1
5.14.6-1
android/:linux_kernel:>=:0<:2023-02-05
:2023-02-05
debian/linux
5.10.140-15.14.6-1
debian/linux-5.10
5.10.149-2~deb10u1

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 ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1089.97~18.04.1
  5. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1095.101~18.04.1
  6. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1093.102~18.04.1
  7. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-132.148~18.04.1
  8. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1037.42~18.04.1
  9. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1087.96~18.04.1
  10. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1074.85~18.04.1
  11. Upgrade

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

    Fixed in 5.4.0-132.148
  12. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1089.97
  13. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1095.101
  14. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1050.56
  15. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1093.102
  16. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.4.0-1087.94
  17. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.4.0-1057.61
  18. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1037.42
  19. Upgrade

    Upgrade ubuntu/linux-iot to a version that resolves this vulnerability.

    Fixed in 5.4.0-1006.8
  20. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1079.85
  21. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1087.96
  22. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1074.85
  23. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1089.97+fips1
  24. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1095.101+fips1
  25. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.74
  26. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1093.102+fips1
  27. Upgrade

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

    Fixed in 5.14.6-1
  28. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2023-02-05
  29. Upgrade

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

    Fixed in 5.10.140-1Fixed in 5.14.6-1
  30. Upgrade

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

    Fixed in 5.10.149-2~deb10u1
  31. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.13.3

Event History

Jul 7, 2021
CVE Published
09:00 AM
Data Sourced
09:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 21, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Data Sourced
via OSV·08:15 AM
DescriptionSeverityAffected Software
Feb 1, 2023
Advisory Published
via OSV·12:00 AM
Jun 6, 2023
Data Sourced
via Red Hat·02:11 PM
DescriptionSeverityAffected Software
Jul 21, 2023
Updated
06:46 PM
Affected Software
Oct 27, 2023
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Updated
via Android·12:00 AM
Affected Software
Feb 7, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 11, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 18, 2024
Updated
via Android·12:00 AM
Affected Software
Apr 29, 2024
Updated
via Android·12:00 AM
Affected Software
May 21, 2024
Updated
via Android·12:00 AM
Affected Software
Aug 26, 2024
Updated
via Android·12:00 AM
Affected Software
Nov 21, 2024
Updated
via NVD·07:22 AM
RemedyAffected Software
May 28, 2025
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:15 PM
RemedySeverityWeaknessAffected Software
Jun 17, 2026
Updated
via NVD·05:02 AM
Affected Software
Sep 30, 2026
Updated
via Android·12:00 AM
Affected Software
Oct 14, 2026
Updated
via NVD·06:17 PM
SeverityWeaknessAffected Software
Nov 12, 2026
Updated
via OSV·05:23 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

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