net: validate lwtstate->data before returning from skb_tunnel_info() - Kernel
Summary
GSD-2021-1001407: net: validate lwtstate->data before returning from skb_tunnel_info(). Affects Kernel versions >= 61adedf3e3f1d3f032c5a6a299978d91eff6d555, < 83bdcfbd968bcc91a0632b7b625e4a9b0cba5e0d. 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 Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and implements various protocols and drivers. The vulnerability in question affects the Kernel's networking subsystem, specifically the skb_tunnel_info() function.
Vulnerability Detail
The vulnerability arises from a lack of validation of the lwtstate->data parameter in the skb_tunnel_info() function. This oversight can potentially lead to security breaches and unauthorized access. Attackers may exploit this vulnerability to execute arbitrary code, escalate privileges, or perform other malicious activities. The vulnerability was introduced in version v4.3 of the Linux Kernel and has been fixed in version v4.14.241.
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
As a workaround, users can apply a patch or modify the affected code manually to include the necessary validation of lwtstate->data. Here is an example of the code modification:
if (lwtstate->data == NULL) {
return -EINVAL;
}
Conclusion
The vulnerability in the Kernel's networking subsystem, specifically in the skb_tunnel_info() function, can potentially lead to security breaches and unauthorized access. It is crucial to update the Linux Kernel to version v4.14.241 or later to mitigate this vulnerability. Applying the recommended fix or workaround is essential to ensure the system's security. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow attackers to execute arbitrary code, escalate privileges, or perform other malicious activities.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will analyze it for any open-source vulnerabilities, including this one.
At the time of this report, there is no known exploit for this vulnerability. However, it is crucial to apply the recommended fix or workaround to mitigate any potential risks.
Yes, this vulnerability can be exploited remotely if the affected system is accessible over a network. Attackers can exploit the vulnerability to gain unauthorized access or execute arbitrary code.
Yes, this vulnerability has been fixed in version v4.14.241 of the Linux Kernel. It is recommended to update to this version or a later one to ensure the vulnerability is patched.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.