Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2022-27666: Local Privilege Escalation in Linux Kernel IPsec ESP Transformation

Published Mar 23, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS1.3%71st percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Debian ProjectRed HatFedora ProjectNetAppLinux
IdentifiersCVE-2022-27666CWE-122

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
LinuxLinux Kerneloperating_system
NetAppH300e Firmwareoperating_system
NetAppH300s Firmwareoperating_system
NetAppH410c Firmwareoperating_system
NetAppH410s Firmwareoperating_system
NetAppH500e Firmwareoperating_system
NetAppH500s Firmwareoperating_system
NetAppH700e Firmwareoperating_system
NetAppH700s Firmwareoperating_system
Red HatEnterprise Virtualizationapplication
Red HatRed Hat Enterprise Linuxoperating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.