Vulnerability in Kernel: scsi: sg: Allow waiting for commands to complete on removed device

Kernel Updated 02 Oct 2025

Summary

17/09/2022
N/A
No i
Unrated
Not published

GSD-2022-1005907: scsi: sg: Allow waiting for commands to complete on removed device. Affects Kernel versions < 408bfa1489a3cfe7150b81ab0b0df99b23dd5411. 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 Your last release was probably never penetration tested 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 critical component of the Linux operating system that manages communication between hardware and software. It provides essential functions and services for the proper functioning of the system. The scsi (Small Computer System Interface) subsystem within the Kernel handles communication with SCSI devices, such as hard drives and tape drives. The sg (SCSI generic) driver is responsible for sending commands to and receiving responses from SCSI devices. However, a vulnerability has been discovered in the sg driver that allows waiting for commands to complete on a removed device.

Vulnerability Detail

The vulnerability in the sg driver allows an attacker to exploit the system by issuing commands to a device that has been removed. This can lead to various security issues, including potential data corruption, denial of service, or privilege escalation. By exploiting this vulnerability, an attacker may be able to execute arbitrary code or gain unauthorized access to sensitive information. The vulnerability has been fixed in Linux Kernel version v5.10.137 by commit 408bfa1489a3cfe7150b81ab0b0df99b23dd5411.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.137 or later. This can be done by downloading the latest Kernel source code from the official repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it according to the provided instructions. Alternatively, users can wait for their Linux distribution to release an updated Kernel package that includes the fix.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to apply the fix by updating the Linux Kernel to the patched version.

Conclusion

The vulnerability in the sg driver of the Linux Kernel allows waiting for commands to complete on a removed device, which can be exploited by attackers to cause various security issues. It is crucial to update the Linux Kernel to version v5.10.137 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability allows an attacker to exploit the system by issuing commands to a removed device, potentially leading to data corruption, denial of service, or privilege escalation.

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 provide real-time alerts for open-source vulnerabilities.

At the time of this report, there is no known public exploit for this vulnerability. However, it is essential to apply the fix as soon as possible to mitigate any potential risks.

Yes, this vulnerability can be exploited remotely if the attacker can send malicious commands to the system. It is crucial to update the Kernel to the patched version to prevent remote exploitation.

The attacker needs to have the ability to send commands to the system, either locally or remotely. Additionally, the system must be running an affected version of the Linux Kernel with the vulnerable sg driver.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.137 or later. This can be done by downloading the latest Kernel source code from the official repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it according to the provided instructions. Alternatively, users can wait for their Linux distribution to release an updated Kernel package that includes the fix.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.