CVE-2025-40003
Linux Debian vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2025-40003) was discovered in the Linux kernel's networking subsystem, specifically in the MSCC Ocelot switch driver. The vulnerability was disclosed on October 18, 2025, affecting the net/mscc/ocelot component. The issue stems from improper handling of delayed work items in the ocelotstatsdeinit() function (NVD).

Technical details

The vulnerability occurs when canceldelayedwork() is called in ocelotstatsdeinit() to cancel the cyclic delayed work item ocelot->statswork. The function may fail to cancel the work item if it is already executing. While destroyworkqueue() waits for pending work items to complete, it cannot prevent the delayed work item from being rescheduled within the ocelotcheckstatswork() function. This happens because the delayed work item is only enqueued into the work queue after its timer expires, leaving destroyworkqueue() with no visibility of this pending work item (NVD).

Impact

When exploited, this vulnerability can lead to use-after-free conditions when the work queue is deallocated but the delayed work item gets queued again. This can result in memory corruption and potential system crashes, as evidenced by the reported warning messages in the kernel logs (NVD).

Mitigation and workarounds

The fix involves replacing canceldelayedwork() with disabledelayedwork_sync() to ensure proper cancellation of the delayed work item and completion of any currently executing work before the workqueue is deallocated. The fix has been implemented and committed to the Linux kernel repository (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