Vulnerability in Kernel: scsi: qedf: Fix refcount issue when LOGO is received during TMF

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000496: scsi: qedf: Fix refcount issue when LOGO is received during TMF. Affects Kernel versions < 7fcbed38503bb34c6e6538b6a9482d1c6bead1e8. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The scsi (Small Computer System Interface) subsystem within the Kernel handles communication with SCSI devices, such as storage devices. The qedf driver is responsible for supporting the QLogic Enhanced Disk Format (QEDF) protocol for Fibre Channel storage devices. This vulnerability specifically affects the qedf driver when handling a LOGO (Logout) message during a TMF (Task Management Function) operation.

Vulnerability Detail

The vulnerability in the qedf driver arises from a refcount issue when a LOGO message is received during a TMF operation. A refcount (reference count) is a mechanism used to track the number of references to a particular resource or object. In this case, the refcount is not properly managed, leading to a potential use-after-free scenario. An attacker could exploit this vulnerability by sending a specially crafted LOGO message during a TMF operation, causing the driver to incorrectly handle memory resources. This could result in a system crash (denial of service) or potentially allow the attacker to execute arbitrary code with kernel privileges, leading to a complete compromise of the affected 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 a workaround, users can consider disabling the qedf driver if it is not essential for their system's functionality. However, this may impact the availability of Fibre Channel storage devices using the QEDF protocol. Disabling the driver can be achieved by blacklisting the qedf module or removing it from the Kernel configuration. It is recommended to consult the documentation or support resources of the specific Linux distribution for guidance on how to perform these actions.

Conclusion

In conclusion, the Kernel vulnerability in the qedf driver when handling a LOGO message during a TMF operation can lead to a system crash or potential code execution with kernel privileges. It is crucial to update the Linux Kernel to version v5.16.10 or later to mitigate this vulnerability. Alternatively, users can consider disabling the qedf driver if it is not essential for their system's functionality. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a system crash (denial of service) or allow an attacker to execute arbitrary code with kernel privileges, potentially compromising the entire system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation. Simply upload your package-lock.json manifest file to the Vulert Playground to perform the check.

Yes, a patch is available in the Linux Kernel version v5.16.10. It is recommended to update to this version or a later one to fix the vulnerability.

A workaround is available by disabling the qedf driver if it is not necessary for your system. However, this may impact the functionality of Fibre Channel storage devices using the QEDF protocol.

You can find more information about this vulnerability in the GSD-2022-1000496.json file available in the GSD database repository: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000496.json

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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