---
id: CVE-2022-27666
title: >-
  A heap buffer overflow flaw was found in IPsec ESP transformation code in
  net/ipv4/esp4.c and net/ipv6/esp6.c
summary: >-
  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
  privileg…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-787
vendor: redhat
product: virtualization
affected:
  - 'linux_kernel >= 4.11, < 4.14.274'
  - 'linux_kernel >= 4.15, < 4.19.237'
  - 'linux_kernel >= 4.20, < 5.4.188'
  - 'linux_kernel >= 5.5, < 5.10.108'
  - 'linux_kernel >= 5.11, < 5.15.29'
  - 'linux_kernel >= 5.16, < 5.16.15'
  - linux_kernel = 5.17
  - fedora = 34
  - fedora = 35
  - virtualization = 4.0
  - enterprise_linux = 8.0
  - h300s_firmware
  - h500s_firmware
  - h700s_firmware
  - h300e_firmware
  - h500e_firmware
  - h700e_firmware
  - h410s_firmware
  - h410c_firmware
  - debian_linux = 9.0
  - debian_linux = 10.0
  - debian_linux = 11.0
patched:
  - linux_kernel 5.16.15
published: '2022-03-23'
updated: '2026-09-01'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-27666'
references:
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2061633'
    label: cve@mitre.org
  - url: >-
      https://github.com/torvalds/linux/commit/ebe48d368e97d007bfeb76fcb065d6cfc4c96645
    label: cve@mitre.org
  - url: 'https://security.netapp.com/advisory/ntap-20220429-0001/'
    label: cve@mitre.org
  - url: 'https://www.debian.org/security/2022/dsa-5127'
    label: cve@mitre.org
  - url: 'https://www.debian.org/security/2022/dsa-5173'
    label: cve@mitre.org
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2061633'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/torvalds/linux/commit/ebe48d368e97d007bfeb76fcb065d6cfc4c96645
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20220429-0001/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.debian.org/security/2022/dsa-5127'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.debian.org/security/2022/dsa-5173'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - exploit-available
epss: 0.05524
epssPercentile: 0.92463
ingestedAt: '2026-09-01T18:30:36.566Z'
exploits:
  github: 3
  githubRepos:
    - 'https://github.com/plummm/CVE-2022-27666'
    - 'https://github.com/Albocoder/cve-2022-27666-exploits'
    - 'https://github.com/ngtuonghung/CVE-2022-27666'
  checkedAt: '2026-09-24T07:52:49.068Z'
exploitAvailable: true
---

## Overview

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

- `linux_kernel >= 4.11, < 4.14.274`
- `linux_kernel >= 4.15, < 4.19.237`
- `linux_kernel >= 4.20, < 5.4.188`
- `linux_kernel >= 5.5, < 5.10.108`
- `linux_kernel >= 5.11, < 5.15.29`
- `linux_kernel >= 5.16, < 5.16.15`
- `linux_kernel = 5.17`
- `fedora = 34`
- `fedora = 35`
- `virtualization = 4.0`
- `enterprise_linux = 8.0`
- `h300s_firmware`
- `h500s_firmware`
- `h700s_firmware`
- `h300e_firmware`
- `h500e_firmware`
- `h700e_firmware`
- `h410s_firmware`
- `h410c_firmware`
- `debian_linux = 9.0`
- `debian_linux = 10.0`
- `debian_linux = 11.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.16.15`
