CVE-2025-40002
Linux Debian vulnerability analysis and mitigation

Overview

A use-after-free vulnerability has been discovered in the Linux kernel's thunderbolt subsystem, identified as CVE-2025-40002. The vulnerability was disclosed on October 18, 2025, affecting the thunderbolt driver's DisplayPort functionality. The issue exists in the tbdpdprx_work function where improper handling of delayed work items can lead to use-after-free scenarios (NVD).

Technical details

The vulnerability stems from the reliance on canceldelayedwork() in tbdpdprxstop(), which does not ensure that the delayed work item tunnel->dprxwork has fully completed if it was already running. This can result in a race condition where tbtunnel is deallocated by tbtunnelput(), while tunnel->dprxwork remains active and attempts to dereference tbtunnel in tbdpdprxwork(). The issue cannot be fixed by using canceldelayedworksync() as it would introduce a deadlock due to both tbdpdprxwork() and the cleanup path acquiring tb->lock (NVD).

Impact

The vulnerability can lead to use-after-free scenarios in the Linux kernel's thunderbolt subsystem, potentially resulting in system crashes or memory corruption. This could affect systems utilizing Thunderbolt DisplayPort functionality (NVD).

Mitigation and workarounds

The issue has been resolved by implementing proper reference counting: if canceldelayedwork() returns true (work is pending), the reference is released in the stop function; if it returns false (work is executing or already completed), the reference is released in the delayed work function itself. This ensures the tb_tunnel remains valid during work item execution while preventing memory leaks (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