Use-After-Free Vulnerability in Linux Kernel's SCSI mvsas Package

linux Updated 19 Oct 2025

Summary

18/10/2025
N/A
No i
Unrated
Not published

DEBIAN-CVE-2025-40001: In the Linux kernel, the following vulnerability has been resolved: scsi: mvsas: Fix use-after-free bugs in mvs_work_queue During the detaching of Marvell's SAS/SATA controller, the original code calls cancel_delayed_wor... Affects linux versions 5.10.103-1 – 6.9.9-1. 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 Linux kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to software applications. The SCSI mvsas package is a driver for Marvell's SAS/SATA controllers, facilitating communication between the operating system and storage devices. This package is critical for ensuring data integrity and performance in systems utilizing Marvell hardware. However, it is susceptible to a use-after-free vulnerability, which can lead to serious security issues if not addressed promptly.

Vulnerability Detail

The vulnerability arises from a race condition during the detachment of Marvell's SAS/SATA controller. Specifically, the original code calls cancel_delayed_work() in the mvs_free() function to cancel a delayed work item. If this work item is already executing, the cancellation may fail, leading to a scenario where mvs_free() deallocates mvs_info while mvs_work_queue() is still accessing it. This can result in use-after-free errors, potentially allowing an attacker to exploit the freed memory, leading to system instability or unauthorized access.

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 temporary workaround, users can ensure that the delayed work items are not executing before calling mvs_free(). However, this is not a permanent solution and updating the package is strongly recommended.

Conclusion

The use-after-free vulnerability in the Linux kernel's SCSI mvsas package poses a significant risk to systems utilizing Marvell's SAS/SATA controllers. It is crucial for users to update their Linux packages to the latest version to mitigate this risk. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A use-after-free vulnerability occurs when a program continues to use a memory reference after it has been freed, potentially leading to unpredictable behavior or security breaches.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any installation.

Exploitation of this vulnerability could lead to system crashes, data corruption, or unauthorized access to sensitive information.

Yes, updating to the latest patched version of the Linux package will resolve this vulnerability. Always ensure you are using the most recent version.

If immediate updates are not possible, consider applying the temporary workaround by ensuring delayed work items are not executing before freeing memory.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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