Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-40002

UNSCOREDEPSS 14%

thunderbolt: Fix use-after-free in tb_dp_dprx_work

Mitigation

  • Upgrade Linux to 67600ccfc4f38ebd331b9332ac94717bfbc87ea7 or later.

Who should check

  • Anyone running Linux >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < c07923f6a8729fc27ee652221a51702ff6654097; >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < 67600ccfc4f38ebd331b9332ac94717bfbc87ea7
  • Anyone running Linux 6.14

Vulnerability facts

Affected
Linux >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < c07923f6a8729fc27ee652221a51702ff6654097; >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < 67600ccfc4f38ebd331b9332ac94717bfbc87ea7; Linux 6.14
Fixed in
Linux 67600ccfc4f38ebd331b9332ac94717bfbc87ea7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
EPSS
0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: thunderbolt: Fix use-after-free in tb_dp_dprx_work The original code relies on cancel_delayed_work() in tb_dp_dprx_stop(), which does not ensure that the delayed work item tunnel->dprx_work has fully completed if it was already running. This leads 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(). A typical race condition is illustrated below: CPU 0 | CPU 1 tb_dp_tunnel_active() | tb_deactivate_and_free_tunnel()| tb_dp_dprx_start() tb_tunnel_deactivate() | queue_delayed_work() tb_dp_activate() | tb_dp_dprx_stop() | tb_dp_dprx_work() //delayed worker cancel_delayed_work() | tb_tunnel_put(tunnel); | | tunnel = container_of(...); //UAF | tunnel-> //UAF Replacing cancel_delayed_work() with cancel_delayed_work_sync() is not feasible as it would introduce a deadlock: both tb_dp_dprx_work() and the cleanup path acquire tb->lock, and cancel_delayed_work_sync() would wait indefinitely for the work item that cannot proceed. Instead, implement proper reference counting: - If cancel_delayed_work() returns true (work is pending), we release the reference in the stop function. - If it returns false (work is executing or already completed), the reference is released in delayed work function itself. This ensures the tb_tunnel remains valid during work item execution while preventing memory leaks. This bug was found by static analysis.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < c07923f6a8729fc27ee652221a51702ff6654097; >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < 67600ccfc4f38ebd331b9332ac94717bfbc87ea7—cvelist
Linux6.14—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-40002. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40002.md
Affected: Linux >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < c07923f6a8729fc27ee652221a51702ff6654097; >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < 67600ccfc4f38ebd331b9332ac94717bfbc87ea7; Linux 6.14
Fixed in: Linux 67600ccfc4f38ebd331b9332ac94717bfbc87ea7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-40002 being exploited?

There is no confirmed exploitation: CVE-2025-40002 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-40002?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2025-40002?

Linux >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < c07923f6a8729fc27ee652221a51702ff6654097; >= d6d458d42e1e1544a18f37f1d5c840e00d5261b9, < 67600ccfc4f38ebd331b9332ac94717bfbc87ea7; Linux 6.14.

Is there a fix for CVE-2025-40002?

Yes. Fixed in Linux 67600ccfc4f38ebd331b9332ac94717bfbc87ea7. Upgrade Linux to 67600ccfc4f38ebd331b9332ac94717bfbc87ea7 or later.

How do I check if I'm affected by CVE-2025-40002?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors