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-1002661: scsi: scsi_debug: Sanity check block descriptor length in resp_mode_select(). Affects Kernel versions < 04181973c38f3d6a353f9246dcf7fee08024fd9e. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a crucial component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The scsi_debug module is a SCSI target used for testing and debugging purposes. It allows users to simulate various SCSI devices and their behaviors. However, a vulnerability has been identified in the scsi_debug module that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in the scsi_debug module lies in the resp_mode_select() function, which is responsible for handling mode select commands. The function fails to perform a proper sanity check on the length of the block descriptor provided in the command. This oversight could lead to a buffer overflow or other memory-related issues, potentially allowing an attacker to execute arbitrary code or crash the system. The impact and attack plausibility of this vulnerability have not been proven yet, but it is essential 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

As a temporary workaround, users can disable or remove the scsi_debug module if it is not essential for their system's operation. This can be done by unloading the module or blacklisting it to prevent it from being loaded during system startup. However, this workaround should only be considered if the scsi_debug module is not required, as it may impact certain testing and debugging activities.

Conclusion

The vulnerability in the scsi_debug module's resp_mode_select() function poses a potential security risk to the Linux Kernel. It is crucial to update the Kernel to the latest stable version to fix this vulnerability and ensure the security and stability of the system. If the scsi_debug module is not essential, users can consider disabling or removing it as a temporary 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 used for testing and debugging purposes. It allows users to simulate various SCSI devices and their behaviors.

The resp_mode_select() function is a part of the scsi_debug module and is responsible for handling mode select commands.

A block descriptor is a data structure used in SCSI commands to describe the characteristics of a block of data, such as its length and location.

This vulnerability could potentially allow an attacker to execute arbitrary code or crash the system by exploiting the lack of proper block descriptor length validation in the resp_mode_select() function.

You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

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