devlink: Fix netns refcount leak in devlink_nl_cmd_reload()

Kernel Updated 02 Oct 2025

Summary

19/12/2021
N/A
No i
Unrated
Not published

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 ↓

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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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