HIGH Introduced in 6.14
thunderbolt DPTunnel UAF
CVE-2026-98691
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: thunderbolt: Tear down inactive DP tunnels when the domain is stopped tb_stop() only tears down DMA tunnels so a DP tunnel that is still waiting for dprx_work to complete keeps that work queued while the routers are removed and the control channel is stopped. The work only stops once the DPRX timeout has passed and because it requeues itself until then the flush_workqueue() in tb_domain_remove() won't wait for its final run. The callback then runs against a domain that is already torn down. A reference to that domain is kept so the completion waiting for that domain to disappear in unbind will block until the timeout is eventually reached. Tear down DP tunnels that are not active yet as well which also cancels that work. Tunnels for displays that are already alive are untouched and keep working.
02KernelScan AI Analysis
Risk summary
A local attacker with physical access to a Thunderbolt/USB-C port can trigger a use-after-free in the kernel by connecting a DisplayPort device and then causing the Thunderbolt domain to stop before the DP tunnel activation completes. This leads to kernel memory corruption, potentially allowing privilege escalation or denial of service.
Vulnerability analysis
When a Thunderbolt domain is stopped, the driver only tore down DMA tunnels, leaving inactive DisplayPort tunnels with pending asynchronous work (dprx_work) queued. This work requeues itself until a timeout expires, but the domain teardown proceeds concurrently — routers are removed and the control channel is stopped. The work callback then executes against a domain that has already been freed, creating a use-after-free condition. A reference to the domain is also leaked, blocking the unbind completion until the timeout. The fix extends tb_stop() to also deactivate DP tunnels that are not yet active, which cancels the pending work. Active DP tunnels for live displays are unaffected. Exploitation requires local access to trigger Thunderbolt hotplug events (plugging/unplugging a DP-capable device) and winning a race between domain teardown and the worker timeout.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.18 | 6.14 | 6.18.56 | 34a6e27c954e |
| 7.2 | 6.14 | 7.2.10 | cbd2abb85ea3 |
| mainline | 6.14 | 7.3 | 0b457c6733f7 |