Vulnerability in Kernel: nbd_cleanup() Function

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1003816: nbd: call genl_unregister_family() first in nbd_cleanup(). Affects Kernel versions < 013a79f1b5c89290e2e97f1ebf14b14e0cf5fe5c. 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 Kernel is a critical component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The nbd (Network Block Device) is a kernel module that allows remote storage devices to be accessed over a network. It provides a mechanism for exporting and mounting remote block devices as if they were local. However, a vulnerability has been discovered in the nbd_cleanup() function, which can potentially be exploited by attackers to cause a denial-of-service (DoS) condition or execute arbitrary code on the affected system.

Vulnerability Detail

The vulnerability in the nbd_cleanup() function arises from a missing call to genl_unregister_family() during the cleanup process. This omission can lead to a resource leak and potential memory corruption. An attacker with local access to the system could exploit this vulnerability by repeatedly creating and destroying nbd devices, eventually exhausting system resources or triggering a memory corruption issue. The impact of this vulnerability could range from a system crash to the execution of arbitrary code with kernel-level privileges. It is important to note that the actual impact and attack plausibility have not yet been proven.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.19.247 or later. The fix for this issue was implemented in commit 013a79f1b5c89290e2e97f1ebf14b14e0cf5fe5c. Updating the Kernel to the latest stable version will ensure that the necessary changes are applied and the vulnerability is mitigated.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating the Kernel is not immediately feasible, a possible workaround is to disable the nbd module by preventing it from loading. This can be achieved by adding the following line to the /etc/modprobe.d/blacklist.conf file:

blacklist nbd

After adding this line, reboot the system for the changes to take effect. Disabling the nbd module will prevent the vulnerable code path from being executed, reducing the risk of exploitation.

Conclusion

In conclusion, a vulnerability has been identified in the nbd_cleanup() function of the Kernel, which can potentially lead to a denial-of-service condition or arbitrary code execution. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. If immediate updating is not possible, disabling the nbd module can serve as a temporary workaround. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a critical component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software.

The nbd (Network Block Device) module is a kernel module that allows remote storage devices to be accessed over a network. It provides a mechanism for exporting and mounting remote block devices as if they were local.

The impact of this vulnerability could range from a system crash to the execution of arbitrary code with kernel-level privileges. However, the actual impact and attack plausibility have not yet been proven.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.19.247 or later. The fix for this issue was implemented in commit 013a79f1b5c89290e2e97f1ebf14b14e0cf5fe5c.

Yes, if updating the Kernel is not immediately feasible, a possible workaround is to disable the nbd module by preventing it from loading. This can be achieved by adding the 'blacklist nbd' line to the /etc/modprobe.d/blacklist.conf file.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.19.247 or later. The fix for this issue was implemented in commit 013a79f1b5c89290e2e97f1ebf14b14e0cf5fe5c. Updating the Kernel to the latest stable version will ensure that the necessary changes are applied and the vulnerability is mitigated.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.