Vulnerability in Kernel package: scsi_debug - Stack Out-of-Bounds Write

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1002714: scsi: scsi_debug: Fix type in min_t to avoid stack OOB. Affects Kernel versions < bdb854f134b964528fa543e0351022eb45bd7346. 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 package is a critical component of the Linux operating system, responsible for managing the system's core functionality. It provides an interface between the hardware and software layers, allowing applications to communicate with the underlying hardware. The scsi_debug module within the Kernel package emulates a SCSI target device for testing and debugging purposes. It allows developers to simulate various SCSI commands and behaviors, aiding in the development and testing of SCSI drivers and applications. However, a vulnerability has been discovered in the scsi_debug module that could lead to a stack out-of-bounds write.

Vulnerability Detail

The vulnerability in the scsi_debug module arises from a type error in the min_t function, which is used to calculate the minimum value between two variables. Due to the incorrect type specified in the function, a stack out-of-bounds write can occur. An attacker could potentially exploit this vulnerability to overwrite adjacent memory locations, leading to a variety of consequences, including system crashes, privilege escalation, or arbitrary code execution. The impact and attack plausibility of this vulnerability have not been proven yet. It is important to note that this vulnerability has been fixed in the Linux Kernel version v5.10.88 by commit bdb854f134b964528fa543e0351022eb45bd7346.

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 →

Conclusion

In conclusion, a vulnerability has been discovered in the scsi_debug module of the Kernel package, which could lead to a stack out-of-bounds write. It is crucial to update the Kernel package to version v5.10.88 or later, which includes the necessary fix. Regularly updating the Kernel package is essential to protect against known vulnerabilities. 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 part of the Kernel package that emulates a SCSI target device for testing and debugging purposes. It allows developers to simulate various SCSI commands and behaviors, aiding in the development and testing of SCSI drivers and applications.

A stack out-of-bounds write occurs when a program writes data beyond the boundaries of a stack-allocated buffer. This can lead to memory corruption, crashes, and potentially allow an attacker to execute arbitrary code or escalate privileges.

The potential consequences of this vulnerability include system crashes, privilege escalation, and arbitrary code execution. However, the actual impact and attack plausibility have not been proven yet.

Yes, this vulnerability has been fixed in the Linux Kernel version v5.10.88 by commit bdb854f134b964528fa543e0351022eb45bd7346. It is recommended to update the Kernel package to this version or later to mitigate the risk.

To update the Kernel package, follow the official update process provided by the Linux distribution you are using. Ensure that you are using a version of the Kernel that includes the commit bdb854f134b964528fa543e0351022eb45bd7346, which addresses the vulnerability.

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