Race Condition Vulnerability in nbd Module of Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1003817: nbd: fix race between nbd_alloc_config() and module removal. Affects Kernel versions < 2573f2375b64280be977431701ed5d33b75b9ad0. 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 nbd module is a part of the Linux Kernel and is responsible for handling network block devices. It allows remote clients to access block devices over a network. The module provides a user-space interface for configuring and managing network block devices. It is commonly used in virtualization environments to provide remote storage access to virtual machines. However, a race condition vulnerability has been discovered in the nbd module, which could lead to potential security issues.

Vulnerability Detail

The race condition vulnerability in the nbd module occurs due to a race condition between the nbd_alloc_config() function and the removal of the module. This vulnerability could be exploited by an attacker to cause a denial-of-service (DoS) condition or potentially execute arbitrary code with kernel privileges. The race condition arises when the nbd_alloc_config() function is called while the module is being removed, leading to inconsistent state and potential memory corruption. This could be leveraged by an attacker to gain unauthorized access or disrupt the normal functioning 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 a temporary workaround, users can disable the nbd module if it is not required for their specific use case. This can be done by blacklisting the module or preventing it from loading at system startup. However, it is important to note that disabling the nbd module may impact the functionality of certain applications or virtualization environments that rely on network block devices.

Conclusion

The race condition vulnerability in the nbd module of the Linux Kernel can be a serious security issue, potentially leading to unauthorized access or disruption of the system. It is crucial to update the kernel to the latest version to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The nbd module is a part of the Linux Kernel and is responsible for handling network block devices. It allows remote clients to access block devices over a network.

A race condition vulnerability occurs when the behavior of a program or system depends on the relative timing of events, and the outcome of the program is affected by the order in which these events occur.

This vulnerability could lead to a denial-of-service (DoS) condition or potentially allow an attacker to execute arbitrary code with kernel privileges. It could also result in unauthorized access or disruption of the system's normal functioning.

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

As a temporary workaround, users can disable the nbd module if it is not required for their specific use case. This can be done by blacklisting the module or preventing it from loading at system startup.

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