
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40001 is a use-after-free vulnerability discovered in the Linux kernel's Marvell SAS/SATA controller driver (mvsas). The vulnerability was disclosed on October 18, 2025, affecting the SCSI subsystem of the Linux kernel (NVD).
The vulnerability occurs during the detaching of Marvell's SAS/SATA controller, where the code calls canceldelayedwork() in mvsfree() to cancel the delayed work item mwq->workq. If mwq->workq is already running, canceldelayedwork() may fail to cancel it, leading to a use-after-free scenario where mvsfree() frees the mvsinfo while mvsworkqueue() is still executing and attempts to access the already-freed mvsinfo. The issue was discovered through static analysis (NVD).
This vulnerability could potentially lead to system instability or crashes due to the use-after-free condition in the kernel's SCSI subsystem. The issue specifically affects systems using Marvell's SAS/SATA controllers (NVD).
The fix involves replacing canceldelayedwork() with canceldelayedworksync() to ensure that the delayed work item is properly canceled and any executing delayed work item completes before the mvsinfo is deallocated (NVD).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."