CVE-2022-27666: Buffer Overflow

Published Mar 8, 2022
·
Updated

A heap buffer overflow flaw was found in IPsec ESP transformation code in net/ipv4/esp4.c and net/ipv6/esp6.c. This flaw allows a local attacker with a normal user privilege to overwrite kernel heap objects and may cause a local privilege escalation threat.

Affected Software

164 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-372.13.1.rt7.170.el8_6
0:4.18.0-372.13.1.rt7.170.el8_6
redhat/kernel<0:4.18.0-372.13.1.el8_6
0:4.18.0-372.13.1.el8_6
redhat/kernel<0:4.18.0-147.67.1.el8_1
0:4.18.0-147.67.1.el8_1
redhat/kernel-rt<0:4.18.0-193.87.1.rt13.137.el8_2
0:4.18.0-193.87.1.rt13.137.el8_2
redhat/kernel<0:4.18.0-193.87.1.el8_2
0:4.18.0-193.87.1.el8_2
redhat/kernel-rt<0:4.18.0-305.49.1.rt7.121.el8_4
0:4.18.0-305.49.1.rt7.121.el8_4
redhat/kernel<0:4.18.0-305.49.1.el8_4
0:4.18.0-305.49.1.el8_4
redhat/kernel<0:5.14.0-70.17.1.el9_0
0:5.14.0-70.17.1.el9_0
redhat/kernel-rt<0:5.14.0-70.17.1.rt21.89.el9_0
0:5.14.0-70.17.1.rt21.89.el9_0
Linux Linux kernel<5.17
Linux Linux kernel=5.17
Linux Linux kernel=5.17-rc1
Linux Linux kernel=5.17-rc2
Linux Linux kernel=5.17-rc3
Linux Linux kernel=5.17-rc4
Linux Linux kernel=5.17-rc5
Linux Linux kernel=5.17-rc6
Linux Linux kernel=5.17-rc7
Fedoraproject Fedora=34
Fedoraproject Fedora=35
redhat Virtualization=4.0
redhat Enterprise Linux=8.0
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
NetApp H410c Firmware
NetApp H410c
redhat/kernel<5.17
5.17
Linux Linux kernel>=4.11<4.14.274
Linux Linux kernel>=4.15<4.19.237
Linux Linux kernel>=4.20<5.4.188
Linux Linux kernel>=5.5<5.10.108
Linux Linux kernel>=5.11<5.15.29
Linux Linux kernel>=5.16<5.16.15
ubuntu/linux-azure<4.15.0-1136.149~14.04.1
4.15.0-1136.149~14.04.1
ubuntu/linux-aws-hwe<4.15.0-1126.135~16.04.2
4.15.0-1126.135~16.04.2
ubuntu/linux-azure<4.15.0-1136.149~16.04.1
4.15.0-1136.149~16.04.1
ubuntu/linux-gcp<4.15.0-1120.134~16.04.1
4.15.0-1120.134~16.04.1
ubuntu/linux-hwe<4.15.0-175.184~16.04.1
4.15.0-175.184~16.04.1
ubuntu/linux-oracle<4.15.0-1091.100~16.04.1
4.15.0-1091.100~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux<4.15.0-175.184
4.15.0-175.184
ubuntu/linux-aws<4.15.0-1126.135
4.15.0-1126.135
ubuntu/linux-aws-5.4<5.4.0-1071.76~18.04.1
5.4.0-1071.76~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1136.149
4.15.0-1136.149
ubuntu/linux-azure-5.4<5.4.0-1074.77~18.04.1
5.4.0-1074.77~18.04.1
ubuntu/linux-dell300x<4.15.0-1040.45
4.15.0-1040.45
ubuntu/linux-gcp-4.15<4.15.0-1120.134
4.15.0-1120.134
ubuntu/linux-gcp-5.4<5.4.0-1069.73~18.04.1
5.4.0-1069.73~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1067.70~18.04.1
5.4.0-1067.70~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1038.39~18.04.1
5.4.0-1038.39~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-107.121~18.04.1
5.4.0-107.121~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1019.21~18.04.1
5.4.0-1019.21~18.04.1
ubuntu/linux-kvm<4.15.0-1112.115
4.15.0-1112.115
ubuntu/linux-oracle<4.15.0-1091.100
4.15.0-1091.100
ubuntu/linux-oracle-5.4<5.4.0-1069.75~18.04.1
5.4.0-1069.75~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1058.65~18.04.1
5.4.0-1058.65~18.04.1
ubuntu/linux-raspi2<4.15.0-1107.114
4.15.0-1107.114
ubuntu/linux-snapdragon<4.15.0-1125.134
4.15.0-1125.134
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-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-2065.68
4.15.0-2065.68
ubuntu/linux-azure-fips<4.15.0-2047.51
4.15.0-2047.51
ubuntu/linux-fips<4.15.0-1083.92
4.15.0-1083.92
ubuntu/linux-gcp-fips<4.15.0-2030.33
4.15.0-2030.33
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-107.121
5.4.0-107.121
ubuntu/linux-aws<5.4.0-1071.76
5.4.0-1071.76
ubuntu/linux-aws-5.13<5.13.0-1021.23~20.04.2
5.13.0-1021.23~20.04.2
ubuntu/linux-azure<5.4.0-1074.77
5.4.0-1074.77
ubuntu/linux-azure-5.13<5.13.0-1021.24~20.04.1
5.13.0-1021.24~20.04.1
ubuntu/linux-bluefield<5.4.0-1032.35
5.4.0-1032.35
ubuntu/linux-gcp<5.4.0-1069.73
5.4.0-1069.73
ubuntu/linux-gcp-5.13<5.13.0-1023.28~20.04.1
5.13.0-1023.28~20.04.1
ubuntu/linux-gke<5.4.0-1067.70
5.4.0-1067.70
ubuntu/linux-gkeop<5.4.0-1038.39
5.4.0-1038.39
ubuntu/linux-hwe-5.13<5.13.0-39.44~20.04.1
5.13.0-39.44~20.04.1
ubuntu/linux-ibm<5.4.0-1019.21
5.4.0-1019.21
ubuntu/linux-intel-iotg-5.15<5.15.0-1008.11~20.04.1
5.15.0-1008.11~20.04.1
ubuntu/linux-iot<5.4.0-1004.6
5.4.0-1004.6
ubuntu/linux-kvm<5.4.0-1061.64
5.4.0-1061.64
ubuntu/linux-oem-5.14<5.14.0-1031.34
5.14.0-1031.34
ubuntu/linux-oracle<5.4.0-1069.75
5.4.0-1069.75
ubuntu/linux-oracle-5.13<5.13.0-1025.30~20.04.1
5.13.0-1025.30~20.04.1
ubuntu/linux-raspi<5.4.0-1058.65
5.4.0-1058.65
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
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.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1071.76+fips1
5.4.0-1071.76+fips1
ubuntu/linux-azure-fips<5.4.0-1074.77+fips1
5.4.0-1074.77+fips1
ubuntu/linux-fips<5.4.0-1047.53
5.4.0-1047.53
ubuntu/linux-gcp-fips<5.4.0-1069.73+fips2
5.4.0-1069.73+fips2
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-realtime<5.15.0-1007.7
5.15.0-1007.7
ubuntu/linux-raspi-realtime*
android/:linux_kernel:>=:0<:2022-08-05
:2022-08-05
debian/linux<5.16.18-1
5.16.18-1
debian/linux<5.16.18-1
5.16.18-1
debian/linux<5.16.18-1
5.16.18-1
debian/linux
4.19.249-25.10.113-15.16.18-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-372.13.1.rt7.170.el8_6
  2. Upgrade

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

    Fixed in 0:4.18.0-372.13.1.el8_6
  3. Upgrade

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

    Fixed in 0:4.18.0-147.67.1.el8_1
  4. Upgrade

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

    Fixed in 0:4.18.0-193.87.1.rt13.137.el8_2
  5. Upgrade

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

    Fixed in 0:4.18.0-193.87.1.el8_2
  6. Upgrade

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

    Fixed in 0:4.18.0-305.49.1.rt7.121.el8_4
  7. Upgrade

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

    Fixed in 0:4.18.0-305.49.1.el8_4
  8. Upgrade

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

    Fixed in 0:5.14.0-70.17.1.el9_0
  9. Upgrade

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

    Fixed in 0:5.14.0-70.17.1.rt21.89.el9_0
  10. Upgrade

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

    Fixed in 5.17
  11. Upgrade

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

    Fixed in 4.15.0-1136.149~14.04.1
  12. Upgrade

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

    Fixed in 4.15.0-1126.135~16.04.2
  13. Upgrade

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

    Fixed in 4.15.0-1136.149~16.04.1
  14. Upgrade

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

    Fixed in 4.15.0-1120.134~16.04.1
  15. Upgrade

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

    Fixed in 4.15.0-175.184~16.04.1
  16. Upgrade

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

    Fixed in 4.15.0-1091.100~16.04.1
  17. Upgrade

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

    Fixed in 4.15.0-175.184
  18. Upgrade

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

    Fixed in 4.15.0-1126.135
  19. Upgrade

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

    Fixed in 5.4.0-1071.76~18.04.1
  20. Upgrade

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

    Fixed in 4.15.0-1136.149
  21. Upgrade

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

    Fixed in 5.4.0-1074.77~18.04.1
  22. Upgrade

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

    Fixed in 4.15.0-1040.45
  23. Upgrade

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

    Fixed in 4.15.0-1120.134
  24. Upgrade

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

    Fixed in 5.4.0-1069.73~18.04.1
  25. Upgrade

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

    Fixed in 5.4.0-1067.70~18.04.1
  26. Upgrade

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

    Fixed in 5.4.0-1038.39~18.04.1
  27. Upgrade

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

    Fixed in 5.4.0-107.121~18.04.1
  28. Upgrade

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

    Fixed in 5.4.0-1019.21~18.04.1
  29. Upgrade

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

    Fixed in 4.15.0-1112.115
  30. Upgrade

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

    Fixed in 4.15.0-1091.100
  31. Upgrade

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

    Fixed in 5.4.0-1069.75~18.04.1
  32. Upgrade

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

    Fixed in 5.4.0-1058.65~18.04.1
  33. Upgrade

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

    Fixed in 4.15.0-1107.114
  34. Upgrade

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

    Fixed in 4.15.0-1125.134
  35. Upgrade

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

    Fixed in 4.15.0-2065.68
  36. Upgrade

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

    Fixed in 4.15.0-2047.51
  37. Upgrade

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

    Fixed in 4.15.0-1083.92
  38. Upgrade

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

    Fixed in 4.15.0-2030.33
  39. Upgrade

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

    Fixed in 5.4.0-107.121
  40. Upgrade

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

    Fixed in 5.4.0-1071.76
  41. Upgrade

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

    Fixed in 5.13.0-1021.23~20.04.2
  42. Upgrade

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

    Fixed in 5.4.0-1074.77
  43. Upgrade

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

    Fixed in 5.13.0-1021.24~20.04.1
  44. Upgrade

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

    Fixed in 5.4.0-1032.35
  45. Upgrade

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

    Fixed in 5.4.0-1069.73
  46. Upgrade

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

    Fixed in 5.13.0-1023.28~20.04.1
  47. Upgrade

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

    Fixed in 5.4.0-1067.70
  48. Upgrade

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

    Fixed in 5.4.0-1038.39
  49. Upgrade

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

    Fixed in 5.13.0-39.44~20.04.1
  50. Upgrade

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

    Fixed in 5.4.0-1019.21
  51. Upgrade

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

    Fixed in 5.15.0-1008.11~20.04.1
  52. Upgrade

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

    Fixed in 5.4.0-1004.6
  53. Upgrade

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

    Fixed in 5.4.0-1061.64
  54. Upgrade

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

    Fixed in 5.14.0-1031.34
  55. Upgrade

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

    Fixed in 5.4.0-1069.75
  56. Upgrade

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

    Fixed in 5.13.0-1025.30~20.04.1
  57. Upgrade

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

    Fixed in 5.4.0-1058.65
  58. Upgrade

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

    Fixed in 5.4.0-1071.76+fips1
  59. Upgrade

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

    Fixed in 5.4.0-1074.77+fips1
  60. Upgrade

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

    Fixed in 5.4.0-1047.53
  61. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  62. Upgrade

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

    Fixed in 5.15.0-1007.7
  63. Upgrade

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

    Fixed in :2022-08-05
  64. Upgrade

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

    Fixed in 5.16.18-1
  65. Upgrade

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

    Fixed in 4.19.249-2Fixed in 5.10.113-1Fixed in 5.16.18-1
  66. Configuration

    On non-containerized deployments of Red Hat Enterprise Linux 8, disable unprivileged user namespaces by setting user.max_user_namespaces to 0 (e.g., write user.max_user_namespaces=0 to /etc/sysctl.d/userns.conf and apply with sysctl -p /etc/sysctl.d/userns.conf). Do not use this mitigation on containerized deployments (e.g., Red Hat OpenShift Container Platform) where the functionality is needed.

    Linux kernel user namespaces (sysctl) user.max_user_namespaces = 0

Event History

Mar 8, 2022
Data Sourced
05:31 AM
DescriptionSeverityAffected Software
Mar 11, 2022
CVE Published
06:30 AM
Data Sourced
06:30 AM
RemedyWeakness
Mar 23, 2022
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·05:07 AM
Data Sourced
via MITRE·05:07 AM
Description
Data Sourced
via OSV·06:15 AM
DescriptionSeverityAffected Software
Event
via OSV·06:15 AM
Exploit Published
via GitHub·10:54 PM
Aug 1, 2022
Advisory Published
via OSV·12:00 AM
Jan 25, 2023
Data Sourced
via Red Hat·05:46 AM
DescriptionSeverityAffected Software
Feb 1, 2023
Data Sourced
via NVD·02:32 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
02:32 PM
Affected Software
Nov 21, 2024
Updated
via NVD·06:56 AM
RemedyAffected Software
Nov 12, 2026
Updated
via OSV·05:23 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-27666?

CVE-2022-27666 is classified as a critical vulnerability due to its potential for local privilege escalation.

2

How do I fix CVE-2022-27666?

To remediate CVE-2022-27666, upgrade to kernel version 0:4.18.0-372.13.1.rt7.170.el8_6 or later for affected Red Hat distributions.

3

Which software is affected by CVE-2022-27666?

CVE-2022-27666 affects specific kernels including versions of Red Hat kernel and kernel-rt prior to their patched releases.

4

What type of vulnerability is CVE-2022-27666?

CVE-2022-27666 is a heap buffer overflow vulnerability found in IPsec ESP transformation code.

5

Can CVE-2022-27666 be exploited remotely?

CVE-2022-27666 is a local privilege escalation vulnerability, meaning it requires local user access to exploit.

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