Vulnerability in wireguard: allowedips

Kernel Updated 02 Oct 2025

Summary

25/06/2021
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Share this vulnerability

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.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback