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