usb: ucsi_acpi: Increase the command completion timeout
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.1.226.2.96.3In the Linux kernel, the following vulnerability has been resolved:
usb: ucsi_acpi: Increase the command completion timeout
Commit 130a96d698d7 ("usb: typec: ucsi: acpi: Increase command completion timeout value") increased the timeout from 5 seconds to 60 seconds due to issues related to alternate mode discovery.
After the alternate mode discovery switch to polled mode the timeout was reduced, but instead of being set back to 5 seconds it was reduced to 1 second.
This is causing problems when using a Lenovo ThinkPad X1 yoga gen7 connected over Type-C to a LG 27UL850-W (charging DP over Type-C).
When the monitor is already connected at boot the following error is logged: "PPM init failed (-110)", /sys/class/typec is empty and on unplugging the NULL pointer deref fixed earlier in this series happens.
When the monitor is connected after boot the following error is logged instead: "GET_CONNECTOR_STATUS failed (-110)".
Setting the timeout back to 5 seconds fixes both cases.
From the CVE record · Linux
A one-second command completion timeout in the Linux kernel’s ucsi_acpi component can cause USB Type-C initialization or connector-status requests to fail. On the described Lenovo ThinkPad X1 Yoga Gen 7 and LG 27UL850-W setup, unplugging a monitor connected at boot can also trigger a NULL pointer dereference. The input describes no attacker, authentication requirement, or user interaction beyond connecting and unplugging the monitor.
Engineers running Linux kernels with the affected ucsi_acpi timeout behavior should check their systems; affected versions are not specified.