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-1002626: scsi: scsi_debug: Sanity check block descriptor length in resp_mode_select(). Affects Kernel versions < adcecd50da6cab7b4957cba0606771dcc846c5a9. 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 critical component of the Linux operating system that provides core functionalities and interfaces between hardware and software. It manages system resources, facilitates communication between processes, and handles device drivers. The scsi_debug module is a SCSI target driver used for testing and debugging SCSI subsystems. It allows users to simulate SCSI devices and perform various operations on them.

The vulnerability in the scsi_debug module arises from a lack of proper sanity checks in the resp_mode_select() function. This function is responsible for handling mode select commands, which allow SCSI devices to negotiate parameters and settings. By exploiting this vulnerability, an attacker could manipulate the block descriptor length in a malicious way, potentially leading to buffer overflows, data corruption, or other security issues.

Vulnerability Detail

The vulnerability in the scsi_debug module occurs due to the absence of a proper sanity check on the block descriptor length parameter in the resp_mode_select() function. This oversight allows an attacker to provide a maliciously crafted block descriptor length, which can lead to various security issues. For example, an excessively large length value could trigger buffer overflows, potentially allowing the attacker to execute arbitrary code or crash the system. Additionally, incorrect length values could result in data corruption or other unexpected behavior.

This vulnerability affects the Linux Kernel versions prior to v4.9.294. It has been assigned the ID GSD-2021-1002626 and has been fixed in the Linux Kernel version v4.9.294 by commit adcecd50da6cab7b4957cba0606771dcc846c5a9.

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 or unload the scsi_debug module if it is not essential for their system's operation. This can be achieved by executing the following commands as root:

rmmod scsi_debug

Conclusion

The vulnerability in the scsi_debug module of the Linux Kernel can lead to severe security issues, including buffer overflows and data corruption. It is crucial to update the Kernel to version v4.9.294 or later to mitigate this vulnerability. Alternatively, users can disable or unload the scsi_debug module if it is not necessary for their system. For further assistance and support 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 SCSI subsystems. It allows users to simulate SCSI devices and perform various operations on them.

This vulnerability can potentially lead to buffer overflows, data corruption, or other security issues. An attacker could exploit this vulnerability to execute arbitrary code, crash the system, or manipulate data in unintended ways.

The vulnerability affects Linux Kernel versions prior to v4.9.294.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.9.294 or later. Alternatively, users can disable or unload the scsi_debug module if it is not necessary for their system.

Yes, as a temporary workaround, users can disable or unload the scsi_debug module by executing the command 'rmmod scsi_debug'. However, this may impact the functionality of systems relying on the scsi_debug module.

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