CVE-2025-40002
Linux Debian vulnerability analysis and mitigation

Overview

A use-after-free vulnerability was discovered in the Linux kernel's thunderbolt subsystem, specifically in the tb_dp_dprx_work function. The vulnerability (CVE-2025-40002) was identified on October 18, 2025, affecting the Linux kernel's thunderbolt driver. This security issue occurs due to improper handling of delayed work items in the tb_dp_dprx_stop() function (NVD).

Technical details

The vulnerability stems from the reliance on cancel_delayed_work() in tb_dp_dprx_stop(), which fails to ensure complete termination of the tunnel->dprx_work delayed work item. When the work item is already running, this can lead to use-after-free scenarios where tb_tunnel is deallocated by tb_tunnel_put(), while tunnel->dprx_work remains active and attempts to dereference tb_tunnel in tb_dp_dprx_work(). The issue was discovered through static analysis (NVD).

Impact

The vulnerability could potentially lead to system crashes or memory corruption due to the use-after-free condition in the thunderbolt subsystem. This affects systems utilizing the thunderbolt driver in the Linux kernel (NVD).

Mitigation and workarounds

The issue has been resolved by implementing proper reference counting in the thunderbolt driver. The fix ensures that if cancel_delayed_work() returns true (work is pending), the reference is released in the stop function, and if it returns false (work is executing or completed), the reference is released in the delayed work function itself. This maintains tb_tunnel validity 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-2026-6100CRITICAL9.1
  • Python InterpreterPython Interpreter
  • platform-python-debug
NoYesApr 13, 2026
CVE-2026-35582HIGH8.8
  • JavaJava
  • gov.nsa.emissary:emissary
NoYesApr 13, 2026
CVE-2026-32316HIGH8.2
  • WolfiWolfi
  • jq
NoNoApr 13, 2026
CVE-2026-6192MEDIUM4.8
  • Linux DebianLinux Debian
  • openjpeg2
NoNoApr 13, 2026
CVE-2026-33929N/AN/A
  • Linux DebianLinux Debian
  • libpdfbox2-java
NoNoApr 14, 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