CVE-2026-74575

thunderbolt: Prevent XDomain delayed work use-after-free on disconnect

State
Published
Severity
8.8 High
Published
Aug 15, 2026
Updated
Oct 16, 2026
Reserved
Aug 15, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

thunderbolt: Prevent XDomain delayed work use-after-free on disconnect

tb_xdp_handle_request() runs on system_wq and queues xd->state_work via queue_delayed_work() in three request handlers: PROPERTIES_CHANGED_REQUEST, UUID_REQUEST (via start_handshake), and LINK_STATE_CHANGE_REQUEST. Similarly, update_xdomain() queues xd->properties_changed_work when local properties change.

Concurrently, tb_xdomain_remove() calls stop_handshake() which does cancel_delayed_work_sync() on both delayed works. Later, tb_xdomain_unregister() calls device_unregister() which eventually frees the xdomain. Since commit 559c1e1e0134 ("thunderbolt: Run tb_xdp_handle_request() in system workqueue") moved the request handler off tb->wq, the handler and the remove path are no longer serialized. If queue_delayed_work() executes after cancel_delayed_work_sync() but before the xdomain is freed, the delayed work fires on a freed object.

Add xd->removing that tb_xdomain_remove() sets under xd->lock before calling stop_handshake(). Each external queue site holds the same lock and checks removing before calling queue_delayed_work(). This provides the mutual exclusion needed: either the queue site acquires the lock first and queues work that the subsequent cancel will see, or the remove path acquires the lock first and the queue site observes removing == true and skips the queue.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 559c1e1e013437bf190469efbcbd8bc803285853 to before d4fa0d544c04dea636bf821ff5582cd7d63e2c34Affected
  • 559c1e1e013437bf190469efbcbd8bc803285853 to before cfbd2dba3d862c9be8c92bea2a357d9ed828a54aAffected
  • 559c1e1e013437bf190469efbcbd8bc803285853 to before dc11d5118f9da6ea28487ffe055de5a0d0734125Affected
  • 559c1e1e013437bf190469efbcbd8bc803285853 to before 91b40862a02000f490b63f1d315be3ee31e83871Affected
  • 559c1e1e013437bf190469efbcbd8bc803285853 to before 33c0ee18cf8665c974b00f4e0ba769fbc07efe10Affected
  • 559c1e1e013437bf190469efbcbd8bc803285853 to before 54a62153c765cd24239cde1f2633f2a2fd005368Affected
  • 559c1e1e013437bf190469efbcbd8bc803285853 to before 2aa2cde2cc79a79d8ea4a15be9f4a67fc528ae91Affected
  • 559c1e1e013437bf190469efbcbd8bc803285853 to before 2c5d2d3c3f70cde2565d7b279b544893a2035842Affected
LinuxLinux
  • 5.2Affected
  • before 5.2Not affected
  • 5.10.266 through 5.10.*Not affected
  • 5.15.217 through 5.15.*Not affected
  • 6.1.184 through 6.1.*Not affected
  • 6.6.151 through 6.6.*Not affected
  • 6.12.103 through 6.12.*Not affected
  • 6.18.44 through 6.18.*Not affected
  • 7.1.8 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.