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-1002592: devlink: fix netns refcount leak in devlink_nl_cmd_reload(). Affects Kernel versions >= ccdf07219da6bd1f43c6ddcde4c0e36993c7365a, < fe30b70ca84da9c4aca85c03ad86e7a9b89c5ded. 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 Penetration testing for web, API and mobile 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. It provides a framework for configuring and managing device drivers and network devices. The devlink_nl_cmd_reload() function is responsible for reloading the devlink configuration. However, a vulnerability has been discovered in this function that leads to a netns refcount leak.

Vulnerability Detail

The vulnerability in devlink_nl_cmd_reload() results in a netns refcount leak. This means that when the function is called, it fails to properly release the reference count on the network namespace (netns) object. As a result, the netns object remains in memory even after it is no longer needed, leading to a resource leak. An attacker could potentially exploit this vulnerability to exhaust system resources and cause a denial-of-service (DoS) condition.

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 mitigated by updating to the latest version of the Linux Kernel (v5.15.8 or later). For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

Devlink is a framework in the Linux Kernel for configuring and managing device drivers and network devices.

A netns refcount leak refers to a situation where the reference count on a network namespace object is not properly released, leading to a resource leak.

The vulnerability can be exploited by an attacker to exhaust system resources and cause a denial-of-service (DoS) condition.

To fix this vulnerability, it is recommended to update to the latest version of the Linux Kernel (v5.15.8 or later) that includes the patch for this issue.

No specific workaround has been mentioned for this vulnerability.

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