usb: typec: ucsi: displayport: Fix OOB altmode array index
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ af8622f6a585d8d82b11cd7987e082861fd0edd3 · < 33a81acd2d1d0667d4eff93cb90339fa53e617e8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: ucsi: displayport: Fix OOB altmode array index
The UCSI displayport driver indexes the connector's port altmode array with the GET_CURRENT_CAM response after checking it is not 0xff. The port altmode array is UCSI_MAX_ALTMODES elements long. If the PPM returns an invalid GET_CURRENT_CAM response above UCSI_MAX_ALTMODES and not equal to 0xff, the kernel may crash with an array index OOB error.
Update the UCSI displayport driver to verify the current cam is less than UCSI_MAX_ALTMODES before accessing the port altmode array.
From the CVE record · Linux
The Linux kernel’s UCSI DisplayPort driver can index past the connector’s port altmode array. A PPM response containing an invalid GET_CURRENT_CAM value above UCSI_MAX_ALTMODES, other than 0xff, may crash the kernel. The input does not establish whether an attacker can trigger this response or whether network access, authentication, or user interaction is required.
Anyone running a Linux kernel with the UCSI DisplayPort driver should check their version; affected versions are not specified.