devlink: Fix netns refcount leak in devlink_nl_cmd_reload()
Summary
GSD-2021-1002509: devlink: fix netns refcount leak in devlink_nl_cmd_reload(). Affects Kernel versions >= ccdf07219da6bd1f43c6ddcde4c0e36993c7365a, < 4b7e90672af8e0c78205db006f1b0a20ebd07f5f. 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 devlink package is a part of the Linux Kernel ecosystem and is responsible for managing device drivers and network devices. It provides a set of tools and APIs for configuring and monitoring network devices. The devlink_nl_cmd_reload() function is used to reload the devlink configuration. However, a vulnerability in this function can lead to a netns refcount leak.
Vulnerability Detail
The vulnerability in devlink_nl_cmd_reload() function can result in a netns refcount leak. This means that the reference count for network namespaces (netns) is not properly managed, leading to a resource leak. An attacker could potentially exploit this vulnerability to exhaust system resources, causing a denial of service (DoS) condition. The vulnerability was introduced in version v5.10 of the Linux Kernel and has been fixed in version v5.10.85.
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 devlink package in the Linux Kernel is vulnerable to a netns refcount leak in the devlink_nl_cmd_reload() function. This vulnerability can be fixed by updating the Linux Kernel to version v5.10.85 or later. It is recommended to apply the fix to prevent potential resource leaks and denial of service (DoS) conditions. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a netns refcount leak, potentially causing a denial of service (DoS) condition by exhausting system resources.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.
There is no known exploit for this vulnerability at the moment. However, it is still important to apply the fix to prevent any potential exploitation.
There may be other vulnerabilities in the devlink package, but this specific vulnerability is related to a netns refcount leak in the devlink_nl_cmd_reload() function.
You can find more information about this vulnerability in the Open Source Vulnerability Database (OSVDB) entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002509.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.