CVE-2025-40001
Linux Debian vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-49655CRITICAL9.8
  • PythonPython
  • keras
NoYesOct 17, 2025
CVE-2025-62672MEDIUM5.3
  • Linux DebianLinux Debian
  • rplay
NoNoOct 19, 2025
CVE-2025-40003N/AN/A
  • Linux DebianLinux Debian
  • linux
NoNoOct 18, 2025
CVE-2025-40002N/AN/A
  • Linux DebianLinux Debian
  • linux
NoNoOct 18, 2025
CVE-2025-40001N/AN/A
  • Linux DebianLinux Debian
  • linux
NoNoOct 18, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management