{"id":"CVE-2026-74575","aliases":["CVE-2026-74575"],"related":[],"kind":"vulnerability","state":"published","title":"thunderbolt: Prevent XDomain delayed work use-after-free on disconnect","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nthunderbolt: Prevent XDomain delayed work use-after-free on disconnect\n\ntb_xdp_handle_request() runs on system_wq and queues\nxd->state_work via queue_delayed_work() in three request handlers:\nPROPERTIES_CHANGED_REQUEST, UUID_REQUEST (via start_handshake),\nand LINK_STATE_CHANGE_REQUEST.  Similarly, update_xdomain() queues\nxd->properties_changed_work when local properties change.\n\nConcurrently, tb_xdomain_remove() calls stop_handshake() which does\ncancel_delayed_work_sync() on both delayed works.  Later,\ntb_xdomain_unregister() calls device_unregister() which eventually\nfrees the xdomain.  Since commit 559c1e1e0134 (\"thunderbolt: Run\ntb_xdp_handle_request() in system workqueue\") moved the request\nhandler off tb->wq, the handler and the remove path are no longer\nserialized.  If queue_delayed_work() executes after\ncancel_delayed_work_sync() but before the xdomain is freed, the\ndelayed work fires on a freed object.\n\nAdd xd->removing that tb_xdomain_remove() sets under xd->lock\nbefore calling stop_handshake().  Each external queue site holds\nthe same lock and checks removing before calling\nqueue_delayed_work().  This provides the mutual exclusion needed:\neither the queue site acquires the lock first and queues work that\nthe subsequent cancel will see, or the remove path acquires the\nlock first and the queue site observes removing == true and skips\nthe queue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nthunderbolt: Prevent XDomain delayed work use-after-free on disconnect\n\ntb_xdp_handle_request() runs on system_wq and queues\nxd->state_work via queue_delayed_work() in three request handlers:\nPROPERTIES_CHANGED_REQUEST, UUID_REQUEST (via start_handshake),\nand LINK_STATE_CHANGE_REQUEST.  Similarly, update_xdomain() queues\nxd->properties_changed_work when local properties change.\n\nConcurrently, tb_xdomain_remove() calls stop_handshake() which does\ncancel_delayed_work_sync() on both delayed works.  Later,\ntb_xdomain_unregister() calls device_unregister() which eventually\nfrees the xdomain.  Since commit 559c1e1e0134 (\"thunderbolt: Run\ntb_xdp_handle_request() in system workqueue\") moved the request\nhandler off tb->wq, the handler and the remove path are no longer\nserialized.  If queue_delayed_work() executes after\ncancel_delayed_work_sync() but before the xdomain is freed, the\ndelayed work fires on a freed object.\n\nAdd xd->removing that tb_xdomain_remove() sets under xd->lock\nbefore calling stop_handshake().  Each external queue site holds\nthe same lock and checks removing before calling\nqueue_delayed_work().  This provides the mutual exclusion needed:\neither the queue site acquires the lock first and queues work that\nthe subsequent cancel will see, or the remove path acquires the\nlock first and the queue site observes removing == true and skips\nthe queue.","source":"cvelist"}],"published":"2026-08-15T12:28:13.187Z","modified":"2026-10-16T20:17:39.063Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"559c1e1e013437bf190469efbcbd8bc803285853","fixed":"d4fa0d544c04dea636bf821ff5582cd7d63e2c34","status":"affected"},{"type":"git","introduced":"559c1e1e013437bf190469efbcbd8bc803285853","fixed":"cfbd2dba3d862c9be8c92bea2a357d9ed828a54a","status":"affected"},{"type":"git","introduced":"559c1e1e013437bf190469efbcbd8bc803285853","fixed":"dc11d5118f9da6ea28487ffe055de5a0d0734125","status":"affected"},{"type":"git","introduced":"559c1e1e013437bf190469efbcbd8bc803285853","fixed":"91b40862a02000f490b63f1d315be3ee31e83871","status":"affected"},{"type":"git","introduced":"559c1e1e013437bf190469efbcbd8bc803285853","fixed":"33c0ee18cf8665c974b00f4e0ba769fbc07efe10","status":"affected"},{"type":"git","introduced":"559c1e1e013437bf190469efbcbd8bc803285853","fixed":"54a62153c765cd24239cde1f2633f2a2fd005368","status":"affected"},{"type":"git","introduced":"559c1e1e013437bf190469efbcbd8bc803285853","fixed":"2aa2cde2cc79a79d8ea4a15be9f4a67fc528ae91","status":"affected"},{"type":"git","introduced":"559c1e1e013437bf190469efbcbd8bc803285853","fixed":"2c5d2d3c3f70cde2565d7b279b544893a2035842","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.10.266","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.217","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.184","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.151","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.103","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.44","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.8","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/d4fa0d544c04dea636bf821ff5582cd7d63e2c34","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cfbd2dba3d862c9be8c92bea2a357d9ed828a54a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc11d5118f9da6ea28487ffe055de5a0d0734125","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/91b40862a02000f490b63f1d315be3ee31e83871","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33c0ee18cf8665c974b00f4e0ba769fbc07efe10","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54a62153c765cd24239cde1f2633f2a2fd005368","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2aa2cde2cc79a79d8ea4a15be9f4a67fc528ae91","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c5d2d3c3f70cde2565d7b279b544893a2035842","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:00:47.186Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74575","url":"https://www.cve.org/CVERecord?id=CVE-2026-74575","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:57.276Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74575","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74575","licence":"Public domain","modified":"2026-10-16T20:17:39.063Z"}],"updatedAt":"2026-11-25T22:59:33.263Z","epss":{"score":0.00238,"percentile":0.15838,"date":"2026-12-01T12:00:22.000Z"}}