CVE-2022-27666: Local Privilege Escalation in Linux Kernel IPsec ESP Transformation
- Vendors
- Debian ProjectRed HatFedora ProjectNetAppLinux
CVE-2022-27666 is a heap-based buffer overflow in the Linux kernel's IPv4 and IPv6 IPsec Encapsulating Security Payload (ESP) transformation implementation. A local attacker with normal user privileges can trigger the overflow with a large message and overwrite kernel heap objects, potentially escalating privileges. Exploitability depends on access to an IPsec security association, either already configured or created using appropriate network administration capabilities.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can corrupt kernel heap memory and potentially escalate a local low-privileged user's privileges, compromising system confidentiality, integrity, and availability. The vulnerability has a CVSS v3.1 base score of 7.8 with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Mitigation
If you can’t patch tonight, do this now.
On non-containerized RHEL 8 systems, disable unprivileged user namespaces by setting user.max_user_namespaces to 0 to prevent unprivileged attackers from obtaining the capabilities needed to configure an IPsec security association. Do not apply this mitigation to containerized deployments such as OpenShift that require user namespaces. This measure does not eliminate exposure when an exploitable IPsec security association is already configured.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update addressing CVE-2022-27666, or upgrade upstream Linux to version 5.16.15 or a later release containing the fix. Fixed distribution builds include RHEL 8 kernel 4.18.0-372.13.1.el8_6, RHEL 8.4 EUS kernel 4.18.0-305.49.1.el8_4, and RHEL 8.2 EUS kernel 4.18.0-193.87.1.el8_2. Reboot after installing conventional kernel updates. Supported RHEL deployments can alternatively apply the appropriate vendor kpatch live-patch update for their running kernel.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-27666 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2022-27666 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2022-27666?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2022-27666, the earliest disclosed Mar 23, 2022.
- Is there a patch for CVE-2022-27666?
- Install a vendor-supported kernel update addressing CVE-2022-27666, or upgrade upstream Linux to version 5.16.15 or a later release containing the fix. Fixed distribution builds include RHEL 8 kernel 4.18.0-372.13.1.el8_6, RHEL 8.4 EUS kernel 4.18.0-305.49.1.el8_4, and RHEL 8.2 EUS kernel 4.18.0-193.87.1.el8_2.
- What products are affected by CVE-2022-27666?
- Linux Kernel, Debian Project Debian Linux, Red Hat Enterprise Virtualization, Fedora Project Fedora, NetApp H300e Firmware, and 8 more.
- How severe is CVE-2022-27666?
- CVE-2022-27666 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 1.3% (71st percentile) as of Oct 25, 2026.
Recent activity
27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.