thunderbolt: Prevent XDomain delayed work use-after-free on disconnect (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.24 % · percentile 15 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Received
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.
References
- https://git.kernel.org/stable/c/d4fa0d544c04dea636bf821ff5582cd7d63e2c34
- https://git.kernel.org/stable/c/cfbd2dba3d862c9be8c92bea2a357d9ed828a54a
- https://git.kernel.org/stable/c/dc11d5118f9da6ea28487ffe055de5a0d0734125
- https://git.kernel.org/stable/c/91b40862a02000f490b63f1d315be3ee31e83871
- https://git.kernel.org/stable/c/33c0ee18cf8665c974b00f4e0ba769fbc07efe10
- https://git.kernel.org/stable/c/54a62153c765cd24239cde1f2633f2a2fd005368
- https://git.kernel.org/stable/c/2aa2cde2cc79a79d8ea4a15be9f4a67fc528ae91
- https://git.kernel.org/stable/c/2c5d2d3c3f70cde2565d7b279b544893a2035842
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
European references
- ENISA EUVD · EUVD-2026-59640
- GCVE · GCVE-0-2026-74575
CERT-FR advisories
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1232 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1163 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1090 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 559c1e1e013437bf190469efbcbd8bc803285853 < d4fa0d544c04dea636bf821ff5582cd7d63e2c34 ; affected 559c1e1e013437bf190469efbcbd8bc803285853 < cfbd2dba3d862c9be8c92bea2a357d9ed828a54a ; affected 559c1e1e013437bf190469efbcbd8bc803285853 < dc11d5118f9da6ea28487ffe055de5a0d0734125 ; affected 559c1e1e013437bf190469efbcbd8bc803285853 < 91b40862a02000f490b63f1d315be3ee31e83871 ; affected 559c1e1e013437bf190469efbcbd8bc803285853 < 33c0ee18cf8665c974b00f4e0ba769fbc07efe10 ; affected 559c1e1e013437bf190469efbcbd8bc803285853 < 54a62153c765cd24239cde1f2633f2a2fd005368 |
| Linux · Linux | affected 5.2 ; unaffected 0 < 5.2 ; unaffected 5.10.266 ≤ 5.10.* ; unaffected 5.15.217 ≤ 5.15.* ; unaffected 6.1.184 ≤ 6.1.* ; unaffected 6.6.151 ≤ 6.6.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |