KernelScan.io

HIGH Introduced in 3.17

thunderbolt Hotplug UAF

CVE-2026-98896

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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().

02

Engine v0.9.0

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.

Affecteddrivers/thunderbolt/tb.c (thunderbolt subsystem)

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.

03

BranchIntroducedFixed inPatch commit
5.103.175.10.27106b2e894e640
5.153.175.15.2221d991f749a82
6.13.176.1.189e8656465d08e
6.123.176.12.11104df2985159e
6.183.176.18.530a87af3b1e3a
6.63.176.6.158b61a4ae2ec6a
mainline3.177.2138ec65b2c76
cip/5.103.175.10.271-cip7806b2e894e640
cip/5.10-rt3.175.10.272-cip79-rt3506b2e894e640
cip/6.13.176.1.189-cip61e8656465d08e
cip/6.1-rt3.176.1.189-cip61-rt32e8656465d08e
cip/6.123.176.12.111-cip3204df2985159e

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip137-rt51)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip116)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)