CVE-2022-42703: Use After Free

Published Oct 9, 2022
·
Updated

In multiple functions of rmap.c, there is a possible memory corruption due to a use after free. This could lead to local escalation of privilege in the kernel with no additional execution privileges needed. User interaction is not needed for exploitation.

Other sources

mm/rmap.c in the Linux kernel before 5.19.7 has a use-after-free related to leaf anonvma double reuse.

— Ubuntu

Affected Software

137 affected componentsFixes available
redhat/linux kernel<6.0
6.0
Linux Linux kernel<5.19.7
Google Android
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1
debian/linux<5.19.11-1
5.19.11-1
debian/linux<5.19.11-1
5.19.11-1
debian/linux<5.19.11-1
5.19.11-1
ubuntu/linux<3.13.0-192.243
3.13.0-192.243
ubuntu/linux-aws<4.4.0-1114.120
4.4.0-1114.120
ubuntu/linux-azure<4.15.0-1157.172~14.04.2
4.15.0-1157.172~14.04.2
ubuntu/linux-lts-xenial<4.4.0-235.269~14.04.1
4.4.0-235.269~14.04.1
ubuntu/linux<4.4.0-235.269
4.4.0-235.269
ubuntu/linux-aws<4.4.0-1152.167
4.4.0-1152.167
ubuntu/linux-aws-hwe<4.15.0-1146.158~16.04.2
4.15.0-1146.158~16.04.2
ubuntu/linux-azure<4.15.0-1159.174~16.04.1
4.15.0-1159.174~16.04.1
ubuntu/linux-gcp<4.15.0-1141.157~16.04.2
4.15.0-1141.157~16.04.2
ubuntu/linux-hwe<4.15.0-200.211~16.04.2
4.15.0-200.211~16.04.2
ubuntu/linux-kvm<4.4.0-1115.125
4.4.0-1115.125
ubuntu/linux-oracle<4.15.0-1111.122~16.04.2
4.15.0-1111.122~16.04.2
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1084.91
4.4.0-1084.91
ubuntu/linux-fips*
ubuntu/linux<4.15.0-200.211
4.15.0-200.211
ubuntu/linux-aws<4.15.0-1146.158
4.15.0-1146.158
ubuntu/linux-aws-5.4<5.4.0-1089.97~18.04.1
5.4.0-1089.97~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1157.172
4.15.0-1157.172
ubuntu/linux-azure-5.4<5.4.0-1095.101~18.04.1
5.4.0-1095.101~18.04.1
ubuntu/linux-dell300x<4.15.0-1057.62
4.15.0-1057.62
ubuntu/linux-gcp-4.15<4.15.0-1141.157
4.15.0-1141.157
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-kvm<4.15.0-1132.137
4.15.0-1132.137
ubuntu/linux-oracle<4.15.0-1111.122
4.15.0-1111.122
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-raspi2<4.15.0-1124.132
4.15.0-1124.132
ubuntu/linux-snapdragon<4.15.0-1142.152
4.15.0-1142.152
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-aws-fips<4.15.0-2085.91
4.15.0-2085.91
ubuntu/linux-azure-fips<4.15.0-2066.72
4.15.0-2066.72
ubuntu/linux-fips<4.15.0-1103.114
4.15.0-1103.114
ubuntu/linux-gcp-fips<4.15.0-2050.55
4.15.0-2050.55
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
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-aws-5.15<5.15.0-1026.30~20.04.2
5.15.0-1026.30~20.04.2
ubuntu/linux-azure<5.4.0-1095.101
5.4.0-1095.101
ubuntu/linux-azure-5.15<5.15.0-1029.36~20.04.1
5.15.0-1029.36~20.04.1
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-gcp-5.15<5.15.0-1025.32~20.04.2
5.15.0-1025.32~20.04.2
ubuntu/linux-gke<5.4.0-1087.94
5.4.0-1087.94
ubuntu/linux-gke-5.15<5.15.0-1023.28~20.04.2
5.15.0-1023.28~20.04.2
ubuntu/linux-gkeop<5.4.0-1057.61
5.4.0-1057.61
ubuntu/linux-gkeop-5.15<5.15.0-1011.15~20.04.2
5.15.0-1011.15~20.04.2
ubuntu/linux-hwe-5.15<5.15.0-56.62~20.04.1
5.15.0-56.62~20.04.1
ubuntu/linux-ibm<5.4.0-1037.42
5.4.0-1037.42
ubuntu/linux-intel-iotg-5.15<5.15.0-1021.26~20.04.1
5.15.0-1021.26~20.04.1
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-lowlatency-hwe-5.15<5.15.0-56.62~20.04.1
5.15.0-56.62~20.04.1
ubuntu/linux-oem-5.14<5.14.0-1055.62
5.14.0-1055.62
ubuntu/linux-oracle<5.4.0-1087.96
5.4.0-1087.96
ubuntu/linux-oracle-5.15<5.15.0-1025.31~20.04.2
5.15.0-1025.31~20.04.2
ubuntu/linux-raspi<5.4.0-1074.85
5.4.0-1074.85
ubuntu/linux-riscv-5.15<5.15.0-1026.30~20.04.2
5.15.0-1026.30~20.04.2
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<5.15.0-56.62
5.15.0-56.62
ubuntu/linux-aws<5.15.0-1026.30
5.15.0-1026.30
ubuntu/linux-azure<5.15.0-1029.36
5.15.0-1029.36
ubuntu/linux-azure-fde<5.15.0-1029.36.1
5.15.0-1029.36.1
ubuntu/linux-gcp<5.15.0-1025.32
5.15.0-1025.32
ubuntu/linux-gke<5.15.0-1023.28
5.15.0-1023.28
ubuntu/linux-gkeop<5.15.0-1011.15
5.15.0-1011.15
ubuntu/linux-ibm<5.15.0-1021.24
5.15.0-1021.24
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-intel-iotg<5.15.0-1021.26
5.15.0-1021.26
ubuntu/linux-kvm<5.15.0-1024.29
5.15.0-1024.29
ubuntu/linux-lowlatency<5.15.0-56.62
5.15.0-56.62
ubuntu/linux-nvidia<5.15.0-1015.15
5.15.0-1015.15
ubuntu/linux-oem-5.17<5.17.0-1024.25
5.17.0-1024.25
ubuntu/linux-oracle<5.15.0-1025.31
5.15.0-1025.31
ubuntu/linux-raspi<5.15.0-1021.23
5.15.0-1021.23
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-realtime<5.15.0-1028.31
5.15.0-1028.31
ubuntu/linux-raspi-realtime*
ubuntu/linux-vmware*
android/:linux_kernel:>=:0<:2023-07-05
:2023-07-05

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 6.0
  2. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  3. Upgrade

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

    Fixed in 5.19.11-1
  4. Upgrade

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

    Fixed in 3.13.0-192.243
  5. Upgrade

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

    Fixed in 4.4.0-1114.120
  6. Upgrade

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

    Fixed in 4.15.0-1157.172~14.04.2
  7. Upgrade

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

    Fixed in 4.4.0-235.269~14.04.1
  8. Upgrade

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

    Fixed in 4.4.0-235.269
  9. Upgrade

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

    Fixed in 4.4.0-1152.167
  10. Upgrade

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

    Fixed in 4.15.0-1146.158~16.04.2
  11. Upgrade

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

    Fixed in 4.15.0-1159.174~16.04.1
  12. Upgrade

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

    Fixed in 4.15.0-1141.157~16.04.2
  13. Upgrade

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

    Fixed in 4.15.0-200.211~16.04.2
  14. Upgrade

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

    Fixed in 4.4.0-1115.125
  15. Upgrade

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

    Fixed in 4.15.0-1111.122~16.04.2
  16. Upgrade

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

    Fixed in 4.4.0-1084.91
  17. Upgrade

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

    Fixed in 4.15.0-200.211
  18. Upgrade

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

    Fixed in 4.15.0-1146.158
  19. Upgrade

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

    Fixed in 5.4.0-1089.97~18.04.1
  20. Upgrade

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

    Fixed in 4.15.0-1157.172
  21. Upgrade

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

    Fixed in 5.4.0-1095.101~18.04.1
  22. Upgrade

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

    Fixed in 4.15.0-1057.62
  23. Upgrade

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

    Fixed in 4.15.0-1141.157
  24. Upgrade

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

    Fixed in 5.4.0-1093.102~18.04.1
  25. Upgrade

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

    Fixed in 5.4.0-132.148~18.04.1
  26. Upgrade

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

    Fixed in 5.4.0-1037.42~18.04.1
  27. Upgrade

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

    Fixed in 4.15.0-1132.137
  28. Upgrade

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

    Fixed in 4.15.0-1111.122
  29. Upgrade

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

    Fixed in 5.4.0-1087.96~18.04.1
  30. Upgrade

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

    Fixed in 5.4.0-1074.85~18.04.1
  31. Upgrade

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

    Fixed in 4.15.0-1124.132
  32. Upgrade

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

    Fixed in 4.15.0-1142.152
  33. Upgrade

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

    Fixed in 4.15.0-2085.91
  34. Upgrade

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

    Fixed in 4.15.0-2066.72
  35. Upgrade

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

    Fixed in 4.15.0-1103.114
  36. Upgrade

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

    Fixed in 4.15.0-2050.55
  37. Upgrade

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

    Fixed in 5.4.0-132.148
  38. Upgrade

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

    Fixed in 5.4.0-1089.97
  39. Upgrade

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

    Fixed in 5.15.0-1026.30~20.04.2
  40. Upgrade

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

    Fixed in 5.4.0-1095.101
  41. Upgrade

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

    Fixed in 5.15.0-1029.36~20.04.1
  42. Upgrade

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

    Fixed in 5.4.0-1050.56
  43. Upgrade

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

    Fixed in 5.4.0-1093.102
  44. Upgrade

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

    Fixed in 5.15.0-1025.32~20.04.2
  45. Upgrade

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

    Fixed in 5.4.0-1087.94
  46. Upgrade

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

    Fixed in 5.15.0-1023.28~20.04.2
  47. Upgrade

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

    Fixed in 5.4.0-1057.61
  48. Upgrade

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

    Fixed in 5.15.0-1011.15~20.04.2
  49. Upgrade

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

    Fixed in 5.15.0-56.62~20.04.1
  50. Upgrade

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

    Fixed in 5.4.0-1037.42
  51. Upgrade

    Upgrade ubuntu/linux-intel-iotg-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1021.26~20.04.1
  52. Upgrade

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

    Fixed in 5.4.0-1006.8
  53. Upgrade

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

    Fixed in 5.4.0-1079.85
  54. Upgrade

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

    Fixed in 5.15.0-56.62~20.04.1
  55. Upgrade

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

    Fixed in 5.14.0-1055.62
  56. Upgrade

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

    Fixed in 5.4.0-1087.96
  57. Upgrade

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

    Fixed in 5.15.0-1025.31~20.04.2
  58. Upgrade

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

    Fixed in 5.4.0-1074.85
  59. Upgrade

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

    Fixed in 5.15.0-1026.30~20.04.2
  60. Upgrade

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

    Fixed in 5.4.0-1089.97+fips1
  61. Upgrade

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

    Fixed in 5.4.0-1095.101+fips1
  62. Upgrade

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

    Fixed in 5.4.0-1065.74
  63. Upgrade

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

    Fixed in 5.4.0-1093.102+fips1
  64. Upgrade

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

    Fixed in 5.15.0-56.62
  65. Upgrade

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

    Fixed in 5.15.0-1026.30
  66. Upgrade

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

    Fixed in 5.15.0-1029.36
  67. Upgrade

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

    Fixed in 5.15.0-1029.36.1
  68. Upgrade

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

    Fixed in 5.15.0-1025.32
  69. Upgrade

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

    Fixed in 5.15.0-1023.28
  70. Upgrade

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

    Fixed in 5.15.0-1011.15
  71. Upgrade

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

    Fixed in 5.15.0-1021.24
  72. Upgrade

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

    Fixed in 5.15.0-1021.26
  73. Upgrade

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

    Fixed in 5.15.0-1024.29
  74. Upgrade

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

    Fixed in 5.15.0-56.62
  75. Upgrade

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

    Fixed in 5.15.0-1015.15
  76. Upgrade

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

    Fixed in 5.17.0-1024.25
  77. Upgrade

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

    Fixed in 5.15.0-1025.31
  78. Upgrade

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

    Fixed in 5.15.0-1021.23
  79. Upgrade

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

    Fixed in 5.15.0-1028.31
  80. Upgrade

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

    Fixed in :2023-07-05

Event History

Oct 9, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 1, 2023
Advisory Published
via OSV·12:00 AM
Jul 2, 2023
Exploit Published
via GitHub·10:58 AM
Jul 5, 2023
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-42703?

CVE-2022-42703 is classified as a high-severity vulnerability due to the potential for exploitation via use-after-free conditions.

2

How do I fix CVE-2022-42703?

To fix CVE-2022-42703, update your Linux kernel to version 5.19.7 or later.

3

Which versions of the Linux kernel are affected by CVE-2022-42703?

CVE-2022-42703 affects Linux kernel versions prior to 5.19.7.

4

Is CVE-2022-42703 related to any specific operating systems?

This vulnerability impacts the Linux kernel and products based on it, including some versions of Android.

5

What type of vulnerability is CVE-2022-42703?

CVE-2022-42703 is a use-after-free vulnerability, which can lead to memory corruption and potential system compromise.

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