Vulnerability in Kernel: Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()"

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001088: Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()". Affects Kernel versions < 9d73b40f979737029bac724c39648016da3f914c. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a crucial component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities and services to the system, including device drivers, memory management, and process scheduling. The vulnerability in question affects the Kernel's nbd (Network Block Device) subsystem, which allows remote storage devices to be accessed over a network. This vulnerability could potentially lead to an overflow on the 'first_minor' variable in the nbd_dev_add() function, resulting in undefined behavior and potential security risks.

Vulnerability Detail

The identified vulnerability is related to the nbd_dev_add() function in the Kernel's nbd subsystem. The function is responsible for adding a new Network Block Device to the system. The vulnerability arises from a possible overflow on the 'first_minor' variable, which could occur when adding multiple devices. This overflow can lead to undefined behavior and potentially be exploited by attackers to gain unauthorized access or execute arbitrary code. The impact and attack plausibility of this vulnerability have not been proven yet, but it is crucial to address it to ensure the 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

There is no specific workaround mentioned for this vulnerability. The recommended approach is to update the Kernel to the fixed version as mentioned in the 'how_to_fix' section.

Conclusion

In conclusion, the identified vulnerability in the Kernel's nbd subsystem could potentially lead to an overflow issue on the 'first_minor' variable in the nbd_dev_add() function. While the impact and attack plausibility have not been proven, it is crucial to update the Kernel to the fixed version (v5.17.2 or later) to ensure the security and stability of the system. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is not yet proven, but it has the potential to lead to undefined behavior and could be exploited by attackers to gain unauthorized access or execute arbitrary code.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will provide real-time alerts for open-source vulnerabilities, including this one.

As of now, there is no known exploit for this vulnerability. However, it is essential to address it promptly by updating the Kernel to the fixed version to mitigate any potential risks.

The specific prerequisites for exploiting this vulnerability are not mentioned. However, it is always recommended to keep the system and software up to date to minimize the risk of exploitation.

The discovery of this vulnerability is attributed to the automated ID system used for aiding the discovery of potential security vulnerabilities. The actual impact and attack plausibility have not been proven yet.

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