Data-races in ip package: Fix sysctl_ip_fwd_use_pmtu vulnerability
Summary
GSD-2022-1004784: ip: Fix data-races around sysctl_ip_fwd_use_pmtu. Affects Kernel versions >= f87c10a8aa1e82498c42d0335524d6ae7cf5a52b, < eb15262128b793e4b1d1c4514d3e6d19c3959764. 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 ip package is a crucial component of the Linux Kernel, responsible for managing IP routing and forwarding. It provides functionality for configuring network interfaces, routing tables, and various IP-related settings. The sysctl_ip_fwd_use_pmtu vulnerability in the ip package introduces data-races around the sysctl_ip_fwd_use_pmtu feature, potentially leading to security issues.
Vulnerability Detail
The sysctl_ip_fwd_use_pmtu vulnerability in the ip package of the Linux Kernel allows for data-races, which can result in unpredictable behavior and potential security risks. Data-races occur when multiple threads or processes access shared data concurrently without proper synchronization. In this case, the vulnerability affects the sysctl_ip_fwd_use_pmtu feature, which controls the behavior of IP forwarding and Path MTU Discovery. Exploiting this vulnerability could lead to incorrect forwarding decisions, network instability, or even potential denial-of-service attacks. The vulnerability was introduced in version v3.14 of the Linux Kernel and has been fixed in version v4.19.254.
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 disable the sysctl_ip_fwd_use_pmtu feature by modifying the corresponding sysctl parameter. This can be achieved by executing the following command as root:
sysctl -w net.ipv4.ip_fwd_use_pmtu=0
This will disable the feature and mitigate the data-race vulnerability. However, it is recommended to apply the official fix by updating the Linux Kernel to ensure comprehensive security.
Conclusion
The sysctl_ip_fwd_use_pmtu vulnerability in the ip package of the Linux Kernel introduces data-races, potentially leading to security risks. It is crucial to update the Linux Kernel to version v4.19.254 or later to mitigate this vulnerability. Alternatively, users can apply the provided workaround to disable the vulnerable feature. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The sysctl_ip_fwd_use_pmtu vulnerability can lead to data-races, resulting in unpredictable behavior and potential security risks. Exploiting this vulnerability could cause incorrect forwarding decisions, network instability, or even denial-of-service attacks.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by the sysctl_ip_fwd_use_pmtu vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time monitoring and alerts for open-source vulnerabilities, including this one.
Yes, a workaround for the sysctl_ip_fwd_use_pmtu vulnerability is to disable the feature by modifying the sysctl parameter. Please refer to the 'workaround' section for detailed instructions.
Yes, you can manually fix the sysctl_ip_fwd_use_pmtu vulnerability by updating the Linux Kernel to version v4.19.254 or later. Instructions for obtaining and compiling/installing the updated kernel can be found in the 'how_to_fix' section.
You can find more information about the sysctl_ip_fwd_use_pmtu vulnerability in the GSD-2022-1004784 JSON report available at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1004xxx/GSD-2022-1004784.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.