Vulnerability in Kernel: scsi_debug - Sanity check block descriptor length in resp_mode_select()

Kernel Updated 02 Oct 2025

Summary

27/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002683: scsi: scsi_debug: Sanity check block descriptor length in resp_mode_select(). Affects Kernel versions < b847ecff850719c46c95acd25a0d555dfd16e10d. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that provides core functionality and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and ensures the security and stability of the system. The scsi_debug module is a SCSI target driver used for testing and debugging purposes. It emulates a SCSI device and allows developers to simulate various scenarios. However, a vulnerability has been discovered in the scsi_debug module that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability exists in the resp_mode_select() function of the scsi_debug module. It fails to perform a sanity check on the length of the block descriptor, which could lead to a buffer overflow or other memory corruption issues. An attacker could exploit this vulnerability by sending a specially crafted SCSI command to a system with the scsi_debug module loaded. Successful exploitation could result in arbitrary code execution, denial of service, or privilege escalation. It is important to note that the impact and attack plausibility of this vulnerability 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

As a temporary workaround, users can unload the scsi_debug module if it is not essential for their system's operation. This can be done by running the following command as root:

rmmod scsi_debug

However, it is recommended to apply the official fix by updating the Kernel to ensure the long-term security of the system.

Conclusion

In conclusion, a vulnerability has been discovered in the scsi_debug module of the Kernel, which could potentially allow attackers to execute arbitrary code, cause denial of service, or escalate privileges. It is crucial to update the Linux Kernel to the latest version, which includes the fix for this vulnerability. Users can also temporarily unload the scsi_debug module as a workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The scsi_debug module is a SCSI target driver used for testing and debugging purposes. It emulates a SCSI device and allows developers to simulate various scenarios.

The impact of this vulnerability could include arbitrary code execution, denial of service, or privilege escalation, depending on the attacker's intentions and the system's configuration.

There is no evidence to suggest that this vulnerability has been exploited in the wild. However, it is still important to apply the fix to ensure the security of the system.

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

You can find more information about this vulnerability in the official GitHub repository of the Cloud Security Alliance's GSD Database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002683.json).

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