Vulnerability in Kernel: nbd_cleanup() Function

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003933: nbd: call genl_unregister_family() first in nbd_cleanup(). Affects Kernel versions < 8a1435c862ea09b06be7acda325128dc08458e25. 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 Kernel is a crucial component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities for the proper functioning of the system. However, a vulnerability has been discovered in the nbd_cleanup() function within the Kernel. This function is responsible for cleaning up resources associated with the Network Block Device (NBD) protocol. The vulnerability exposes a potential security risk that could be exploited by attackers.

Vulnerability Detail

The vulnerability in the nbd_cleanup() function arises from the improper order of function calls within the function. Specifically, the genl_unregister_family() function, which is responsible for unregistering a generic netlink family, is not called before other cleanup operations. This oversight can lead to resource leaks and potential memory corruption. Although the impact and attack plausibility of this vulnerability have not been proven, it is essential to address it to ensure the overall security and stability of the system.

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 this vulnerability has been fixed in the latest version of the Linux Kernel, applying the update is the recommended solution. However, if updating is not immediately feasible, a temporary workaround can be implemented by manually modifying the nbd_cleanup() function to ensure that genl_unregister_family() is called before other cleanup operations. Here is an example of the modified code:

void nbd_cleanup()
{
    genl_unregister_family(&nbd_genl_family);
    // Other cleanup operations
}

Conclusion

The vulnerability in the nbd_cleanup() function of the Kernel exposes a potential security risk that could lead to resource leaks and memory corruption. It is crucial to update the Linux Kernel to version v4.14.283 or later to mitigate this vulnerability. Applying the fix ensures that the genl_unregister_family() function is called first in the nbd_cleanup() function, addressing the issue. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability could potentially lead to resource leaks and memory corruption. However, the actual impact and attack plausibility have not been proven.

You can use the Vulert Playground at Vulert 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.

As of now, there is no known exploit for this vulnerability. However, it is crucial to address it promptly by updating the Linux Kernel to the fixed version.

While updating the Kernel is the recommended solution, you can apply a temporary workaround by manually modifying the nbd_cleanup() function to ensure the genl_unregister_family() function is called first. However, this is not a permanent solution, and updating the Kernel is strongly advised.

You can find more information about this vulnerability, including the fix commit and affected versions, in the vulnerability database entry at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1003xxx/GSD-2022-1003933.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