Vulnerability in wireguard: socket: free skb in send6 when ipv6 is disabled
Summary
GSD-2022-1001758: wireguard: socket: free skb in send6 when ipv6 is disabled. Affects Kernel versions >= e7096c131e5161fa3b8e52a650d7719d2857adfd, < 402991a9771587acc2947cf6c4d689c5397f2258. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The wireguard package is a kernel module that provides a secure network tunneling mechanism. It allows users to create virtual private networks (VPNs) that can securely transmit data over public networks. The package is widely used in Linux systems to establish secure connections between devices. However, a vulnerability has been discovered in the wireguard socket implementation when IPv6 is disabled.
Vulnerability Detail
The vulnerability in wireguard occurs when the send6 function is called with IPv6 disabled. In this scenario, the function attempts to free a socket buffer (skb) that was not properly allocated. This can lead to a use-after-free vulnerability, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. The impact and attack plausibility of this vulnerability have not yet been proven.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
If updating the kernel is not immediately possible, a workaround for this vulnerability is to enable IPv6 support in the system. By enabling IPv6, the send6 function will be properly handled, mitigating the vulnerability. However, enabling IPv6 may not be feasible in all environments, and updating the kernel is still the recommended solution.
Conclusion
The wireguard package in Linux systems is vulnerable to a use-after-free vulnerability when the send6 function is called with IPv6 disabled. This vulnerability has been fixed in the Linux Kernel version v5.15.33. Users are advised to update their kernel to the latest version to ensure the security of their systems. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
Wireguard is a kernel module that provides a secure network tunneling mechanism used to create virtual private networks (VPNs) in Linux systems.
The impact of this vulnerability is not yet proven, but it could potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.
To fix this vulnerability, update your Linux kernel to version v5.15.33 or later, which includes the necessary fix for the wireguard package.
Yes, if updating the kernel is not immediately possible, you can enable IPv6 support in your system as a temporary workaround. However, updating the kernel is still recommended for long-term security.
No known exploits for this vulnerability have been reported at this time.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.