CVE-2022-27666: Buffer Overflow
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:4.18.0-372.13.1.rt7.170.el8_6 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-372.13.1.el8_6 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-147.67.1.el8_1 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:4.18.0-193.87.1.rt13.137.el8_2 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-193.87.1.el8_2 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:4.18.0-305.49.1.rt7.121.el8_4 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-305.49.1.el8_4 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:5.14.0-70.17.1.el9_0 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:5.14.0-70.17.1.rt21.89.el9_0 - Upgrade
Upgrade
debian/linuxto 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.25-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.17 - 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
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
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.
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.
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.
What type of vulnerability is CVE-2022-27666?
CVE-2022-27666 is a heap buffer overflow vulnerability found in IPsec ESP transformation code.
Can CVE-2022-27666 be exploited remotely?
CVE-2022-27666 is a local privilege escalation vulnerability, meaning it requires local user access to exploit.