Overflow Vulnerability in nbd Package

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001425: nbd: fix possible overflow on 'first_minor' in nbd_dev_add(). Affects Kernel versions >= b0d9111a2d53785847763c64c40af2d4c4c5a8b7, < d42740aab3ea29578d11a042bb50ded12ad3aa8a. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The nbd package is a Linux Kernel module that provides support for Network Block Devices (NBD). NBD allows remote storage devices to be accessed over a network as if they were local block devices. This functionality is commonly used in virtualization environments to provide disk images to virtual machines. The nbd package is an integral part of the Linux Kernel and is widely used in various Linux distributions.

Vulnerability Detail

The vulnerability identified in the nbd package is related to a possible overflow on the 'first_minor' variable in the nbd_dev_add() function. This vulnerability was introduced in version v4.11 of the Linux Kernel by commit b0d9111a2d53785847763c64c40af2d4c4c5a8b7 and was fixed in version v5.16.19 by commit d42740aab3ea29578d11a042bb50ded12ad3aa8a. The overflow could potentially lead to memory corruption or other security issues, although the actual impact and attack plausibility have not been proven yet.

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 overflow vulnerability in the nbd package can potentially lead to memory corruption or other security issues. It is recommended to update the Linux Kernel to version v5.16.19 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The nbd package is a Linux Kernel module that allows remote storage devices to be accessed over a network as if they were local block devices.

The impact of this vulnerability is currently unknown, as the actual attack plausibility and consequences 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 the Vulert Playground will provide real-time alerts for open-source vulnerabilities.

To update the Linux Kernel, you can either apply the necessary updates provided by your Linux distribution or manually compile and install the updated Kernel version. It is important to ensure compatibility with your specific distribution and any additional software or drivers.

You can find more information about this vulnerability in the GSD-2022-1001425 entry of the GSD Database maintained by the Cloud Security Alliance. The entry provides details about the vulnerability, affected versions, and relevant references.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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