net: tun: unlink NAPI from device on destruction

Kernel Updated 02 Oct 2025

Summary

31/07/2022
N/A
No i
Unrated
Not published

GSD-2022-1004235: net: tun: unlink NAPI from device on destruction. Affects Kernel versions >= 943170998b200190f99d3fe7e771437e2c51f319, < 8661d4b8faa2f7ee7a559969c0a7c57f077b1728. 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

The net: tun package is a part of the Linux Kernel ecosystem. It provides a virtual network device that allows user-space programs to interact with the kernel networking stack. The tun device is commonly used for VPN implementations and network virtualization. This vulnerability affects the tun device and its interaction with the NAPI (New API) framework.

Vulnerability Detail

The vulnerability in the net: tun package arises from a failure to unlink the NAPI from the device during destruction. This can lead to a use-after-free scenario, where a reference to the NAPI structure is accessed after it has been freed. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. The vulnerability was introduced in version v4.15 of the Linux Kernel and has been fixed in version v5.18.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.

Conclusion

The net: tun package in the Linux Kernel is vulnerable to a use-after-free scenario due to a failure to unlink the NAPI from the device during destruction. This vulnerability can be mitigated by updating the Linux Kernel to version v5.18.10 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The net: tun package is a part of the Linux Kernel ecosystem and provides a virtual network device for user-space programs.

NAPI (New API) is a framework in the Linux Kernel that allows network drivers to defer interrupt processing to a kernel thread, improving performance.

An attacker could exploit this vulnerability by triggering a use-after-free scenario, potentially leading to arbitrary code execution or a denial-of-service condition.

This vulnerability was introduced in version v4.15 of the Linux Kernel.

Yes, this vulnerability has been fixed in version v5.18.10 of the Linux Kernel.

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