CVE-2025-40003
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability was discovered in the Linux kernel's networking subsystem, specifically in the MSCC Ocelot switch statistics handling code (CVE-2025-40003). The vulnerability was disclosed on October 18, 2025, affecting the Linux kernel's net/mscc/ocelot component (NVD).

Technical details

The vulnerability stems from improper handling of delayed work items in the ocelot_stats_deinit() function. The issue occurs when cancel_delayed_work() fails to cancel a work item that is already executing, while destroy_workqueue() cannot prevent the delayed work item from being rescheduled within the ocelot_check_stats_work() function. This creates a race condition where the work queue can be destroyed before the delayed work item is processed, leading to a use-after-free condition (NVD).

Impact

The vulnerability could potentially lead to system instability or crashes due to the use-after-free condition in the kernel's networking subsystem. The issue affects the MSCC Ocelot switch statistics functionality and could potentially be exploited to cause denial of service conditions (NVD).

Mitigation and workarounds

The fix involves replacing cancel_delayed_work() with disable_delayed_work_sync() to ensure proper cancellation of delayed work items and completion of any currently executing work before the workqueue is deallocated. This change has been implemented in the kernel codebase (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68764N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug
NoYesJan 05, 2026
CVE-2025-68758N/AN/A
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesJan 05, 2026
CVE-2025-68756N/AN/A
  • Linux KernelLinux Kernel
  • linux-fips
NoYesJan 05, 2026
CVE-2025-68753N/AN/A
  • Linux KernelLinux Kernel
  • python3-perf
NoYesJan 05, 2026

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