CVE-2022-49153
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49153 affects the Linux kernel's WireGuard implementation, specifically related to a memory leak in the socket handling when IPv6 is disabled. The vulnerability was discovered and reported with a memory leak occurring in the WireGuard socket code, affecting Linux kernel versions from 5.6 to 5.15.33, 5.16 to 5.16.19, and 5.17 to 5.17.2 (NVD).

Technical details

The vulnerability occurs in the WireGuard socket code where the skb (socket buffer) is not properly freed when IPv6 is disabled. Specifically, in the functions wgsocketsendbufferasreplytoskb() or wgsocketsendbuffertopeer(), the send6() semantics require freeing the skb, but when CONFIGIPV6 is disabled, the kfreeskb() call is missing. The issue has been assigned a CVSS v3.1 base score of 5.5 (MEDIUM) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD, Kernel Patch).

Impact

The vulnerability results in a memory leak when using WireGuard with IPv6 disabled. This was confirmed through a memory leak report showing an unreferenced object of size 232 bytes that remained allocated. While the impact is limited to memory resource exhaustion, it could potentially affect system stability over time (NVD).

Mitigation and workarounds

The vulnerability has been patched by adding the missing kfree_skb() call in the WireGuard socket code when IPv6 is disabled. The fix was implemented in the Linux kernel through a patch that adds the proper memory cleanup code. Users should upgrade to kernel versions 5.15.33, 5.16.19, or 5.17.2 or later to receive the fix (Kernel Patch).

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