Race Condition in nbd Module Removal in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1003935: nbd: fix race between nbd_alloc_config() and module removal. Affects Kernel versions < 165cf2e0019fa6cedc75b456490c41494c34abb4. 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 Linux Kernel is the core component of the Linux operating system, responsible for managing system resources and providing an interface for applications to interact with the hardware. The nbd (Network Block Device) module is used to export block devices over a network. It allows remote clients to access block devices as if they were directly attached to their own systems. The nbd module is an integral part of the Linux Kernel and is widely used in various network storage solutions.

Vulnerability Detail

This vulnerability in the nbd module arises due to a race condition between the nbd_alloc_config() function and the removal of the module. A race condition occurs when multiple threads or processes access shared resources concurrently, leading to unexpected behavior. In this case, if the nbd_alloc_config() function is called while the module removal is in progress, it can result in memory corruption or other undefined behavior. An attacker could potentially exploit this vulnerability to execute arbitrary code, escalate privileges, or cause a denial-of-service 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. However, users can mitigate the risk by ensuring that the nbd module is not actively used or loaded on their systems. Disabling or removing the nbd module if it is not required can help eliminate the potential attack surface.

Conclusion

In conclusion, a race condition vulnerability has been identified in the nbd module of the Linux Kernel. This vulnerability can lead to memory corruption or other undefined behavior, potentially allowing attackers to execute arbitrary code or escalate privileges. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. Additionally, users can disable or remove the nbd module if it is not required to further reduce the attack surface. For further support or assistance, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The nbd (Network Block Device) module is a component of the Linux Kernel that allows block devices to be exported over a network. It enables remote clients to access block devices as if they were directly attached to their own systems.

A race condition is a situation in which the behavior of a program or system depends on the relative timing of events, leading to unpredictable or undesired outcomes. It occurs when multiple threads or processes access shared resources concurrently.

The vulnerability could potentially be exploited by an attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service condition on systems where the nbd module is actively used.

You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software, without requiring access to the code or installation.

For further support or assistance in fixing this vulnerability, you can reach out to info@devnack.com. They can provide guidance and resources to help remediate the vulnerability in your Linux Kernel installation.

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