Critical Vulnerability in Linux Kernel: Multiple Issues with vhost_scsi_set_endpoint

linux Updated 02 Oct 2025

Summary

16/04/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-22083: In the Linux kernel, the following vulnerability has been resolved: vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint If vhost_scsi_set_endpoint is called multiple times without a vhost_scsi_clear_end... Affects linux versions < 6.12.25-1. Fixed in 6.12.25-1. 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 Linux kernel is a core component of the operating system, responsible for managing hardware resources and providing essential services to applications. It supports various functionalities, including process management, memory management, and device control. The kernel is crucial for system stability and performance, making its security paramount. This specific vulnerability affects the vhost-scsi subsystem, which facilitates communication between virtual machines and SCSI devices, highlighting a significant risk in environments utilizing virtualization technologies.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the vhost-scsi subsystem related to the handling of multiple calls to the vhost_scsi_set_endpoint function. This can lead to several critical issues, including use-after-free errors, hangs during target directory removal, and target portal group (TPG) leaks. The vulnerability arises when vhost_scsi_set_endpoint is called multiple times without a corresponding vhost_scsi_clear_endpoint, resulting in improper memory management and potential system instability. The major user of this functionality, QEMU, has implemented checks to prevent this misuse, but the underlying vulnerability remains a concern for other users.

How To Fix

Minimum fixed version

6.12.25-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users should avoid calling vhost_scsi_set_endpoint multiple times without first invoking vhost_scsi_clear_endpoint. This practice will help prevent the issues associated with the vulnerability until an update can be applied.

Conclusion

The vulnerability in the Linux kernel's vhost-scsi subsystem presents significant risks, particularly in virtualized environments. Users are strongly advised to update to the patched version to mitigate these risks. Implementing best practices, such as avoiding multiple calls to vhost_scsi_set_endpoint, can provide temporary relief until the update is applied.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vhost-scsi subsystem is part of the Linux kernel that facilitates communication between virtual machines and SCSI devices, enabling efficient data transfer in virtualized environments.

The risks include potential system crashes due to use-after-free errors, hangs during target directory removal, and leaks of target portal groups, which can lead to system instability and data loss.

You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

Yes, the vulnerability affects specific versions of the Linux package in Debian 13 and Debian 14 prior to version 6.12.25-1.

If an immediate update is not possible, ensure to avoid multiple calls to vhost_scsi_set_endpoint without clearing the endpoint first, as a temporary measure to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.12.25-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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