Vulnerability in Kernel: Fix error handling of scsi_host_alloc()

Kernel Updated 02 Oct 2025

Summary

30/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000849: scsi: core: Fix error handling of scsi_host_alloc(). Affects Kernel versions < 8958181c1663e24a13434448e7d6b96b5d04900a. 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 provides core functionality and interfaces with hardware devices. It manages various aspects of system operations, including memory management, process scheduling, and device drivers. One of the key functionalities of the Kernel is handling SCSI (Small Computer System Interface) devices, which are commonly used for storage and other peripheral devices. The scsi_host_alloc() function is responsible for allocating resources for SCSI host controllers. However, a vulnerability has been discovered in the error handling of this function, which could potentially lead to security issues.

Vulnerability Detail

The vulnerability in the scsi_host_alloc() function of the Kernel arises from improper error handling. When an error occurs during the allocation of resources for SCSI host controllers, the function fails to handle the error properly, potentially leaving the system in an inconsistent state. This vulnerability could be exploited by an attacker to cause a denial-of-service (DoS) condition or potentially execute arbitrary code with elevated privileges. The impact and attack plausibility of this vulnerability have not been proven yet, but it is crucial 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 this vulnerability can be potentially serious, it is advisable to apply the recommended fix by updating the Kernel. However, if updating the Kernel is not immediately feasible, a possible workaround could be to disable or restrict access to SCSI host controllers, if not required for system functionality. This can be achieved by modifying the system configuration or using access control mechanisms to limit access to SCSI devices.

Conclusion

The vulnerability in the Kernel's scsi_host_alloc() function highlights the importance of proper error handling in critical system components. To ensure the security and stability of the system, it is recommended to update the Kernel to version v4.9.273 or later, which includes the fix for this vulnerability. If immediate updating is not feasible, consider applying the suggested workaround or restricting access to SCSI host controllers. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability could range from a denial-of-service (DoS) condition to potential execution of arbitrary code with elevated privileges. However, the actual impact and attack plausibility have not been proven yet.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this one.

Yes, a fix for this vulnerability is available in the Linux Kernel version v4.9.273 or later. It is recommended to update the Kernel to the latest version to address this issue.

While it is recommended to update the Kernel to fix this vulnerability, if immediate updating is not feasible, you can consider disabling or restricting access to SCSI host controllers, if they are not required for system functionality. This can help mitigate the risk associated with this vulnerability.

You can find more information about this vulnerability, including the specific commit that fixes it, in the GSD-2021-1000849 JSON file available at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/GSD-2021-1000849.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