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

59 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
redhat/kernel<5.17
5.17
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
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1

Remediation

Information

The given exploit needs CAP_NET_ADMIN to set up IPsec SA and a user namespace is used to get that capability, so disabling unprivileged user namespaces gives some protection. ~~~ On non-containerized deployments of Red Hat Enterprise Linux 8, you can disable user namespaces by setting user.max_user_namespaces to 0: # echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf # sysctl -p /etc/sysctl.d/userns.conf On containerized deployments, such as Red Hat OpenShift Container Platform, do not use this mitigation as the functionality is needed to be enabled. ~~~ Note: If the target system is already using IPsec and has SA configured, then no additional privileges are needed to exploit the issue.

Event History

Mar 8, 2022
Data Sourced
via Red Hat·05:31 AM
DescriptionSeverityAffected Software
Mar 11, 2022
CVE Published
06:30 AM
Mar 23, 2022
CVE Published
via MITRE·05:07 AM
Data Sourced
via MITRE·05:07 AM
Description
Jan 12, 2024
Data Sourced
via Launchpad·12:07 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·04:37 AM
RemedyDescriptionSeverityAffected Software
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-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