kernel: buffer overflow in IPsec ESP transformation code
Published Mar 23, 2022
7.8
HIGHCVSS 3.1
EPSS 5.52%
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.
Affected products
No data.
Configuration 1
- ≥ 4.11 · < 4.14.274
- ≥ 4.15 · < 4.19.237
- ≥ 4.20 · < 5.4.188
- ≥ 5.5 · < 5.10.108
- ≥ 5.11 · < 5.15.29
- ≥ 5.16 · < 5.16.15
- 5.17
- 5.17
- 5.17
- 5.17
- 5.17
- 5.17
- 5.17
Configuration 2
- 34
- 35
Configuration 3
- 4.0
- 8.0
Configuration 4
- n/a
Configuration 5
- n/a
Configuration 6
- n/a
Configuration 7
- n/a
Configuration 8
- n/a
Configuration 9
- n/a
Configuration 10
- n/a
Configuration 11
- n/a
Configuration 12
- 9.0
- 10.0
- 11.0
No data.
Red Hat Enterprise Linux 8
kernel-0:4.18.0-372.13.1.el8_6
Fixed · RHSA-2022:5316
Red Hat Enterprise Linux 8
kernel-rt-0:4.18.0-372.13.1.rt7.170.el8_6
Fixed · RHSA-2022:5344
Red Hat Enterprise Linux 8
kpatch-patch
Fixed · RHSA-2022:5219
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions
kernel-0:4.18.0-147.67.1.el8_1
Fixed · RHSA-2022:4924
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions
kpatch-patch
Fixed · RHSA-2022:4942
Red Hat Enterprise Linux 8.2 Extended Update Support
kernel-0:4.18.0-193.87.1.el8_2
Fixed · RHSA-2022:5220
Red Hat Enterprise Linux 8.2 Extended Update Support
kernel-rt-0:4.18.0-193.87.1.rt13.137.el8_2
Fixed · RHSA-2022:5224
Red Hat Enterprise Linux 8.2 Extended Update Support
kpatch-patch
Fixed · RHSA-2022:5476
Red Hat Enterprise Linux 8.4 Extended Update Support
kernel-0:4.18.0-305.49.1.el8_4
Fixed · RHSA-2022:4829
Red Hat Enterprise Linux 8.4 Extended Update Support
kernel-rt-0:4.18.0-305.49.1.rt7.121.el8_4
Fixed · RHSA-2022:4835
Red Hat Enterprise Linux 8.4 Extended Update Support
kpatch-patch
Fixed · RHSA-2022:4809
Red Hat Enterprise Linux 9
kernel-0:5.14.0-70.17.1.el9_0
Fixed · RHSA-2022:5249
Red Hat Enterprise Linux 9
kernel-0:5.14.0-70.17.1.el9_0
Fixed · RHSA-2022:5249
Red Hat Enterprise Linux 9
kernel-rt-0:5.14.0-70.17.1.rt21.89.el9_0
Fixed · RHSA-2022:5267
Red Hat Enterprise Linux 9
kpatch-patch
Fixed · RHSA-2022:5214
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8
kernel-0:4.18.0-372.13.1.el8_6
Fixed · RHSA-2022:5316
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8
redhat-virtualization-host-0:4.5.1-202207170705_8.6
Fixed · RHSA-2022:5678
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | kernel-0:4.18.0-372.13.1.el8_6 | Fixed | RHSA-2022:5316 |
| Red Hat Enterprise Linux 8 | kernel-rt-0:4.18.0-372.13.1.rt7.170.el8_6 | Fixed | RHSA-2022:5344 |
| Red Hat Enterprise Linux 8 | kpatch-patch | Fixed | RHSA-2022:5219 |
| Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | kernel-0:4.18.0-147.67.1.el8_1 | Fixed | RHSA-2022:4924 |
| Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | kpatch-patch | Fixed | RHSA-2022:4942 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | kernel-0:4.18.0-193.87.1.el8_2 | Fixed | RHSA-2022:5220 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | kernel-rt-0:4.18.0-193.87.1.rt13.137.el8_2 | Fixed | RHSA-2022:5224 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | kpatch-patch | Fixed | RHSA-2022:5476 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | kernel-0:4.18.0-305.49.1.el8_4 | Fixed | RHSA-2022:4829 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | kernel-rt-0:4.18.0-305.49.1.rt7.121.el8_4 | Fixed | RHSA-2022:4835 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | kpatch-patch | Fixed | RHSA-2022:4809 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-70.17.1.el9_0 | Fixed | RHSA-2022:5249 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-70.17.1.el9_0 | Fixed | RHSA-2022:5249 |
| Red Hat Enterprise Linux 9 | kernel-rt-0:5.14.0-70.17.1.rt21.89.el9_0 | Fixed | RHSA-2022:5267 |
| Red Hat Enterprise Linux 9 | kpatch-patch | Fixed | RHSA-2022:5214 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | kernel-0:4.18.0-372.13.1.el8_6 | Fixed | RHSA-2022:5316 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | redhat-virtualization-host-0:4.5.1-202207170705_8.6 | Fixed | RHSA-2022:5678 |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
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.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
AV:L/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 5.52% (0.05524) | 92.56th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.53% (0.04534) | 90.30th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.30% (0.00305) | 51.56th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00042) | 5.07th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00042) | 5.63th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.67% (0.01669) | 76.02th | v2 (v2022.01.01) |
| May 4, 2022 | 1.67% (0.01669) | 74.11th | v2 (v2022.01.01) |
| Apr 30, 2022 | 1.41% (0.01412) | 71.14th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.40% (0.01404) | 69.97th | v2 (v2022.01.01) |
| Mar 29, 2022 | 1.40% (0.01404) | 49.95th | v2 (v2022.01.01) |
| Mar 23, 2022 | 0.89% (0.00885) | 11.47th | v2 (v2022.01.01) |
References (8)
- https://access.redhat.com/security/cve/CVE-2022-27666 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2061633 x_refsource_MISCIssue TrackingPatchThird Party Advisory
- https://github.com/torvalds/linux/commit/ebe48d368e97d007bfeb76fcb065d6cfc4c96645 x_refsource_MISCPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-27666
- https://security.netapp.com/advisory/ntap-20220429-0001/ x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2022-27666
- https://www.debian.org/security/2022/dsa-5127 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.debian.org/security/2022/dsa-5173 vendor-advisoryx_refsource_DEBIANThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2022-27666 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2061633 | x_refsource_MISCIssue TrackingPatchThird Party Advisory | |
| https://github.com/torvalds/linux/commit/ebe48d368e97d007bfeb76fcb065d6cfc4c96645 | x_refsource_MISCPatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-27666 | ||
| https://security.netapp.com/advisory/ntap-20220429-0001/ | x_refsource_CONFIRMThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2022-27666 | ||
| https://www.debian.org/security/2022/dsa-5127 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| https://www.debian.org/security/2022/dsa-5173 | vendor-advisoryx_refsource_DEBIANThird Party Advisory |
Change history (0)
No recorded changes yet.