Vulnerability in wireguard: allowedips
Summary
GSD-2021-1000806: wireguard: allowedips: free empty intermediate nodes when removing single node. Affects Kernel versions >= e7096c131e5161fa3b8e52a650d7719d2857adfd, < 5ceb59f40c094e6de1265c1d0e4bd560f692e272. 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
WireGuard is a free and open-source software application and communication protocol that implements virtual private network (VPN) techniques to create secure point-to-point connections. It is designed to be fast, lightweight, and easy to configure. The 'allowedips' feature in WireGuard allows users to specify the IP addresses that are allowed to pass through the VPN tunnel. However, a vulnerability has been discovered in the handling of 'allowedips' that can lead to memory leaks and potential security issues.
Vulnerability Detail
The vulnerability in WireGuard's 'allowedips' feature occurs when removing a single node from the allowed IP addresses list. In this scenario, empty intermediate nodes are not properly freed, resulting in memory leaks. An attacker could potentially exploit this vulnerability to exhaust system memory resources, leading to denial of service (DoS) attacks or other security breaches. The vulnerability was introduced in version v5.6 of the Linux Kernel and has been fixed in version v5.12.10.
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
There is no specific workaround mentioned for this vulnerability. The recommended solution is to update the Linux Kernel to the fixed version.
Conclusion
The vulnerability in WireGuard's 'allowedips' feature can result in memory leaks and potential security issues. It is crucial to update the Linux Kernel to version v5.12.10 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
WireGuard is a free and open-source software application and communication protocol that implements virtual private network (VPN) techniques.
The 'allowedips' feature in WireGuard allows users to specify the IP addresses that are allowed to pass through the VPN tunnel.
This vulnerability can lead to memory leaks and potential security issues. An attacker could exploit it to exhaust system memory resources, leading to denial of service (DoS) attacks or other security breaches.
To fix this vulnerability, update the Linux Kernel to version v5.12.10 or later.
There is no specific workaround mentioned for this vulnerability. Updating the Linux Kernel is the recommended solution.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.