Skip to main content
Public proof of conceptFix available

CVE-2022-27666

A public proof of concept exists; no exploitation attested.

  • Published2022-03-23
  • Fixed in5.16.15 · 5.15.29 · 5.10.108 · 5.4.188 · 4.19.237 · 4.14.274
  • WeaknessCWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-03-2306:15CVE publishedNVD

Versions per branch

NVD
Linux linux kernel
BranchAffectedFixed in
5.16≥ 5.16, < 5.16.155.16.15
5.x≥ 5.11, < 5.15.295.15.29
5.x≥ 5.5, < 5.10.1085.10.108
5.4≥ 4.20, < 5.4.1885.4.188
4.x≥ 4.15, < 4.19.2374.19.237
4.x≥ 4.11, < 4.14.2744.14.274
5.17= 5.17no fix published
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
11.0= 11.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
34.x= 34no fix published
35.x= 35no fix published

10 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • :linux_kernel:Androidfrom :0 · fixed in :2022-08-05
  • dtb-aarch64openSUSE:Leap 15.3all versions · fixed in 5.3.18-150300.59.63.1and 11 other packages
  • hyperv-daemonsAzure Linux:2all versions · fixed in 5.15.92.1-1
  • kernelTuxCare:CentOS:8.5all versions · fixed in 4.18.0-348.7.1.el8_5.tuxcare.els5and 21 other packages
  • kernelTuxCare:CentOS:8.5all versions · fixed in 4.18.0-348.7.1.el8_5.tuxcare.els22and 21 other packages
  • kernelTuxCare:CentOS:8.4all versions · fixed in 4.18.0-305.25.1.el8_4.tuxcare.els5and 21 other packages
  • kernelTuxCare:CentOS:8.4all versions · fixed in 4.18.0-305.25.1.el8_4.tuxcare.els22and 21 other packages
  • kernelRocky Linux:8all versions · fixed in 0:4.18.0-372.13.1.el8_6

237 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-27666 Red Hat Product Security949 products fixed

    kernel: buffer overflow in IPsec ESP transformation code

  • RHSA-2022:5678 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat Virtualization security, bug fix, and enhancement update [ovirt-4.5.1]

  • RHSA-2022:5476 Red Hat Product Security70 products fixed

    Red Hat Security Advisory: kpatch-patch security update

  • RHSA-2022:5249 Red Hat Product Security166 products fixed

    Red Hat Security Advisory: kernel security and bug fix update

  • RHSA-2022:5316 Red Hat Product Security129 products fixed

    Red Hat Security Advisory: kernel security and bug fix update

  • RHSA-2022:5344 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: kernel-rt security and bug fix update

10 more advisories

Full record on NVD

Fix

  1. Update Linux linux kernel to 5.16.15 · 5.15.29 · 5.10.108 · 5.4.188 · 4.19.237 · 4.14.274
  2. Vendor fix Red Hat Product Security RHSA-2022:5678 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/2974891
  3. Vendor fix Red Hat Product Security RHSA-2022:5476 · 70 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2022:5249 · 166 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect.
  5. Workaround from the vendor Red Hat Product Security RHSA-2022:5678 · 8 productsThe 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…

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2022-03-23
Last modified
2026-09-01
NVD status
Analyzed
GitHub advisory
GHSA-5h7v-72v6-2r5w

Frequently asked questions

What is CVE-2022-27666?

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.

Is CVE-2022-27666 actively exploited?

Active exploitation of CVE-2022-27666 has not been confirmed. Its EPSS score was 5.5% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-27666?

CVE-2022-27666 has a CVSS v3 base score of 7.8 (High severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record