CVE-2022-27666
Linux Kernel vulnerability analysis and mitigation

Overview

A heap buffer overflow vulnerability (CVE-2022-27666) was discovered in the IPsec ESP transformation code in net/ipv4/esp4.c and net/ipv6/esp6.c files of the Linux kernel. The vulnerability was discovered and disclosed on March 23, 2022, affecting Linux Kernel versions through 5.17:rc7. This security flaw allows a local attacker with normal user privileges to potentially overwrite kernel heap objects (CVE, NVD).

Technical details

The vulnerability stems from improper memory allocation during ESP (Encapsulating Security Payload) transformations in the IPsec implementation. The maximum message size that can be sent is larger than the maximum size that skbpagefragrefill can allocate, potentially leading to writing beyond the allocated buffer. The issue was fixed in Linux kernel 5.17 rc8 through a patch that implements a fallback to COW (Copy-On-Write) when the allocation size exceeds ESPSKBFRAGMAXSIZE (Github Commit). The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NetApp Advisory).

Impact

The successful exploitation of this vulnerability could lead to local privilege escalation, allowing attackers to gain elevated system privileges. Additionally, it could result in denial of service conditions or the disclosure of sensitive information from the kernel memory (Debian Advisory).

Mitigation and workarounds

The vulnerability has been patched in Linux kernel version 5.17 rc8. Various Linux distributions have released security updates to address this issue. For example, Debian has fixed this in version 5.10.113-1 for the stable distribution (bullseye), and version 4.19.249-2 for the oldstable distribution (buster) (Debian Advisory, Debian Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management