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-1001045: scsi: core: Fix error handling of scsi_host_alloc(). Affects Kernel versions < 45d83db4728127944b237c0c8248987df9d478e7. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a crucial component of the Linux operating system, responsible for managing system resources and providing an interface for software to interact with the hardware. It includes various subsystems, including the SCSI (Small Computer System Interface) core, which handles communication with SCSI devices such as hard drives and tape drives. The scsi_host_alloc() function is used to allocate and initialize a SCSI host structure. However, there is a vulnerability in the error handling of this function, which could lead to potential security issues.

Vulnerability Detail

The vulnerability lies in the error handling of the scsi_host_alloc() function in the SCSI core of the Kernel. If an error occurs during the allocation and initialization of a SCSI host structure, the error handling may not properly clean up the allocated resources, leading to memory leaks or other resource-related issues. This could potentially be exploited by an attacker to cause a denial-of-service (DoS) condition or execute arbitrary code with elevated privileges. The impact and attack plausibility of this vulnerability have not been proven yet.

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

There is no specific workaround mentioned for this vulnerability. The recommended approach is to update the Kernel to the fixed version.

Conclusion

The vulnerability in the Kernel's scsi_host_alloc() function's error handling can potentially lead to security issues, including memory leaks and potential execution of arbitrary code. It is crucial to update the Kernel to the fixed version to mitigate these risks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a crucial component of the Linux operating system, responsible for managing system resources and providing an interface for software to interact with the hardware.

The SCSI (Small Computer System Interface) core is a subsystem in the Kernel that handles communication with SCSI devices such as hard drives and tape drives.

scsi_host_alloc() is a function in the SCSI core that is used to allocate and initialize a SCSI host structure.

The potential impacts of this vulnerability include memory leaks, resource-related issues, denial-of-service (DoS) conditions, and potential execution of arbitrary code with elevated privileges.

To fix this vulnerability, users should update their Kernel to the latest version that includes the fix commit (45d83db4728127944b237c0c8248987df9d478e7). Regularly updating the Kernel is recommended to ensure the latest security patches are applied.

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