Vulnerability in wireguard: socket: free skb in send6 when ipv6 is disabled

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

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 ↓

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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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