usb: typec: thunderbolt: Disable work before freeing tbt on remove
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.507.2.47.3In the Linux kernel, the following vulnerability has been resolved:
usb: typec: thunderbolt: Disable work before freeing tbt on remove
tbt_altmode_remove() drops the plug and cable references without draining tbt->work. The work function dereferences those references, and can also requeue itself in its error path. The VDM callbacks can queue the same work item.
Disable and drain tbt->work before dropping the references. This waits for an existing invocation and prevents subsequent schedule_work() calls from queueing it during teardown.
This issue was found by an in-house static analysis tool and confirmed by manual code review.
From the CVE record · Linux
The Linux kernel’s USB Type-C Thunderbolt removal path can drop plug and cable references while a work item that uses them is still running or can be queued again. The input does not establish what an attacker could do or specify network access, authentication, or user-interaction conditions.
Engineers running Linux kernels with USB Type-C Thunderbolt support should check their versions; affected versions are not specified.