usb: typec: fix potential array underflow in ucsi_ccg_sync_control()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 170a6726d0e266f2c8f306e3d61715c32f4ee41e · < 56971710cd541f2f05160a84b3183477d34a1be9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: fix potential array underflow in ucsi_ccg_sync_control()
The "command" variable can be controlled by the user via debugfs. The worry is that if con_index is zero then "&uc->ucsi->connector[con_index - 1]" would be an array underflow.
From the CVE record · Linux
The Linux kernel’s ucsi_ccg_sync_control() may underflow a connector array when con_index is zero. A user who can control the command through debugfs could trigger this condition; the input does not specify whether authentication or additional user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected USB Type-C UCSI code; affected versions are not specified.