HIGH Introduced in 6.14
thunderbolt DPRX UAF
CVE-2026-98689
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: Don't access a DP tunnel after its DPRX read was canceled tb_dp_dprx_work() checks ->dprx_canceled before it takes tb->lock so it misses a tb_dp_dprx_stop() that could not cancel the already running work. It then polls the DPRX capabilities and runs the callback for a tunnel that has already been torn down while the domain is suspending or going away. This can be hit by cancelling the DPRX read from outside the ordered tb->wq: During suspend tb_disconnect_and_release_dp() does just this and with a later patch tb_stop() will do it as well. The latter in combination with the Apple NHI where the DPRX read never completed is how I hit this. Check the flag with tb->lock held instead and check it again in tb_dp_tunnel_active() because the callback runs after the lock has been dropped again. Also clear the flag in tb_dp_dprx_start() so that it only ever describes the work that is currently in flight.
02KernelScan AI Analysis
Risk summary
A local attacker on a system with Thunderbolt hardware can trigger a use-after-free in the DisplayPort tunnel handling during suspend/resume or controller stop operations. This leads to kernel memory corruption, enabling privilege escalation or system crash. The vulnerability requires Thunderbolt/USB4 hardware with DisplayPort tunneling support and the ability to initiate suspend or Thunderbolt controller teardown.
Vulnerability analysis
The Thunderbolt driver's DisplayPort receiver (DPRX) work function checks a cancellation flag before acquiring the main lock, creating a race window where a concurrent suspend or stop operation can tear down the tunnel while the work is still running. The work then proceeds to poll DPRX capabilities and invoke a callback on already-freed tunnel resources, causing a use-after-free. The fix moves the cancellation check inside the locked section, adds a second check in the activation callback (which runs after the lock is dropped), and ensures the flag is cleared when new DPRX work starts so it only reflects the current in-flight operation. This vulnerability is reachable by any local user who can trigger system suspend (e.g., closing a laptop lid, running systemctl suspend) or by physical interaction with Thunderbolt devices, on systems with Thunderbolt/USB4 controllers that support DisplayPort tunneling.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.18 | 6.14 | 6.18.56 | 405a969c0b33 |
| 7.2 | 6.14 | 7.2.10 | 2c2fd6a7fd5e |
| mainline | 6.14 | 7.3 | 419fa32fa5bc |