HIGH Introduced in 3.17
thunderbolt Hotplug UAF
CVE-2026-98896
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: Keep the domain reference while processing hotplug We process hotplug events in a workqueue that may run after the domain has been removed by tb_domain_remove(). For example if user unloads the driver while at the same time plugging a device router we may have scheduled tb_handle_hotplug() to run. Avoid possible UAF in this case by taking the domain reference before scheduling the hotplug handler in tb_queue_hotplug().
02KernelScan AI Analysis
Risk summary
A local attacker with physical access to a Thunderbolt port and the ability to unload the kernel module can trigger a use-after-free in the hotplug workqueue handler. This race condition between device insertion and driver teardown allows kernel memory corruption, leading to privilege escalation, information disclosure, or system crash.
Vulnerability analysis
The Thunderbolt driver processes hotplug events asynchronously in a workqueue. When a device is plugged in, tb_queue_hotplug() schedules tb_handle_hotplug() to run later, but originally stored only a raw pointer to the domain structure without incrementing its reference count. If the driver is unloaded concurrently (via tb_domain_remove()), the domain can be freed before the workqueue handler executes, causing a use-after-free when the handler accesses the dangling pointer. The fix takes a domain reference (tb_domain_get) before queuing the work and releases it (tb_domain_put) after the handler completes, ensuring the domain remains valid throughout the hotplug processing. Exploitation requires physical access to insert a Thunderbolt device while the driver is being unloaded — a race window that is difficult to hit reliably but yields full kernel compromise if won.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 3.17 | 5.10.271 | 06b2e894e640 |
| 5.15 | 3.17 | 5.15.222 | 1d991f749a82 |
| 6.1 | 3.17 | 6.1.189 | e8656465d08e |
| 6.12 | 3.17 | 6.12.111 | 04df2985159e |
| 6.18 | 3.17 | 6.18.53 | 0a87af3b1e3a |
| 6.6 | 3.17 | 6.6.158 | b61a4ae2ec6a |
| mainline | 3.17 | 7.2 | 138ec65b2c76 |
| cip/5.10 | 3.17 | 5.10.271-cip78 | 06b2e894e640 |
| cip/5.10-rt | 3.17 | 5.10.272-cip79-rt35 | 06b2e894e640 |
| cip/6.1 | 3.17 | 6.1.189-cip61 | e8656465d08e |
| cip/6.1-rt | 3.17 | 6.1.189-cip61-rt32 | e8656465d08e |
| cip/6.12 | 3.17 | 6.12.111-cip32 | 04df2985159e |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |