PT-2025-42707 · Linux+2 · Linux Kernel+2

CVE-2025-40002

·

Published

2025-09-23

·

Updated

2026-03-07

CVSS v2.0

6.0

Medium

VectorAV:L/AC:H/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The Linux kernel contains a use-after-free issue within the thunderbolt driver, specifically in the tb dp dprx work function. The original code used cancel delayed work(), which did not guarantee the completion of a delayed work item before the associated memory was deallocated, leading to a use-after-free scenario when tb tunnel was dereferenced. A race condition can occur where tb tunnel is deallocated while tunnel->dprx work is still active. The issue was identified through static analysis. The fix involves implementing proper reference counting to ensure the tb tunnel remains valid during work item execution and to prevent memory leaks. The vulnerable function is tb dp dprx work().
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Race Condition

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2026-12425
CVE-2025-40002
OPENSUSE-SU-2025:15671-1
OPENSUSE-SU-2026:10301-1
USN-8029-1
USN-8029-2
USN-8029-3
USN-8030-1
USN-8048-1

Affected Products

Linuxmint
Linux Kernel
Ubuntu