First published: Tue Mar 08 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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
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 |
debian/linux | 5.10.223-1 5.10.226-1 6.1.123-1 6.1.128-1 6.12.12-1 6.12.15-1 | |
Linux Kernel | <5.17 | |
Linux Kernel | =5.17 | |
Linux Kernel | =5.17-rc1 | |
Linux Kernel | =5.17-rc2 | |
Linux Kernel | =5.17-rc3 | |
Linux Kernel | =5.17-rc4 | |
Linux Kernel | =5.17-rc5 | |
Linux Kernel | =5.17-rc6 | |
Linux Kernel | =5.17-rc7 | |
Fedora | =34 | |
Fedora | =35 | |
Red Hat Enterprise Virtualization | =4.0 | |
Red Hat Enterprise Linux | =8.0 | |
All of | ||
netapp h300s firmware | ||
netapp h300s | ||
All of | ||
NetApp H500S Firmware | ||
netapp h500s | ||
All of | ||
netapp h700s firmware | ||
netapp h700s | ||
All of | ||
netapp h300e firmware | ||
netapp h300e | ||
All of | ||
netapp h500e firmware | ||
netapp h500e | ||
All of | ||
netapp h700e firmware | ||
netapp h700e | ||
All of | ||
netapp h410s firmware | ||
netapp h410s | ||
All of | ||
netapp h410c firmware | ||
netapp h410c | ||
Debian | =9.0 | |
Debian | =10.0 | |
Debian | =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 |
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.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2022-27666 is classified as a critical vulnerability due to its potential for local privilege escalation.
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.
CVE-2022-27666 affects specific kernels including versions of Red Hat kernel and kernel-rt prior to their patched releases.
CVE-2022-27666 is a heap buffer overflow vulnerability found in IPsec ESP transformation code.
CVE-2022-27666 is a local privilege escalation vulnerability, meaning it requires local user access to exploit.