Fix error handling of scsi_host_alloc() in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1000884: scsi: core: Fix error handling of scsi_host_alloc(). Affects Kernel versions < 2dc85045ae65b9302a1d2e2ddd7ce4c030153a6a. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a crucial component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities and services to enable the proper functioning of the system. One of its key features is the scsi (Small Computer System Interface) core, which handles communication between the operating system and SCSI devices. The scsi_host_alloc() function is responsible for allocating and initializing a SCSI host structure. However, a vulnerability has been discovered in the error handling of this function, potentially leading to security issues.

Vulnerability Detail

The vulnerability lies in the error handling of the scsi_host_alloc() function in the Kernel's scsi core. When an error occurs during the allocation process, the function fails to properly handle and clean up resources, potentially resulting in memory leaks or other security vulnerabilities. Although the impact and attack plausibility have not been proven, it is crucial to address this issue to ensure the stability and security 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 resolved by updating the Kernel, there is no specific workaround provided. It is advisable to follow the recommended fix and update the Kernel to the latest version.

Conclusion

In conclusion, the vulnerability in the error handling of scsi_host_alloc() in the Kernel's scsi core can potentially lead to security risks. It is crucial to update the Linux Kernel to version v4.19.195 or later to mitigate this vulnerability. By following the recommended fix, the error handling of scsi_host_alloc() will be improved, ensuring the stability and security of the system. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The scsi core in the Kernel is responsible for handling communication between the operating system and SCSI devices. It provides the necessary functionalities to manage and control SCSI devices connected to the system.

The scsi_host_alloc() function is used in the Kernel's scsi core to allocate and initialize a SCSI host structure. It is a crucial step in setting up communication with SCSI devices.

The vulnerability in the error handling of scsi_host_alloc() can lead to security risks such as memory leaks or other vulnerabilities. Although the exact impact and attack vectors have not been proven, it is important to address this issue to ensure the overall security of the system.

To update the Linux Kernel, you can follow the official documentation provided by your Linux distribution. Typically, it involves using package managers or manually compiling and installing the latest Kernel version.

The recommended solution is to update the Linux Kernel to the latest version. This ensures that the fix for the vulnerability is applied. There is no specific alternative solution mentioned for this particular 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