usb: typec: ucsi: displayport: Fix deadlock
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ af8622f6a585d8d82b11cd7987e082861fd0edd3 · < 364618c89d4c57c85e5fc51a2446cd939bf57802| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: ucsi: displayport: Fix deadlock
This patch introduces the ucsi_con_mutex_lock / ucsi_con_mutex_unlock functions to the UCSI driver. ucsi_con_mutex_lock ensures the connector mutex is only locked if a connection is established and the partner pointer is valid. This resolves a deadlock scenario where ucsi_displayport_remove_partner holds con->mutex waiting for dp_altmode_work to complete while dp_altmode_work attempts to acquire it.
From the CVE record · Linux
The Linux kernel’s USB Type-C UCSI DisplayPort code can deadlock when partner removal waits for DisplayPort alternate-mode work that is trying to acquire the same mutex. The input does not describe an attacker-triggered path, required access, or user interaction.
Teams running the Linux kernel should check their systems; affected versions are not specified.