Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected af8622f6a585d8d82b11cd7987e082861fd0edd3 before 8fde7e4a366184e9a6aa95541e52933a73c00a74; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 before 83f1abd62cc134700ba92e1e2dc650a49a185497; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 before 1ffed96ef986e2cdf986aa4a4506a5e6dcdf4456; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 before 58e0ee293ec5e06cacbe3953ad44042f1473dae9; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 before ac9f878c468052af6571e8639ab1c3ae040b908f; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 before 33a81acd2d1d0667d4eff93cb90339fa53e617e8; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 before bdaaf3074aedce8f1b173cc363d61cff5f6a585f; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 before 04cec690b1fd9d1c4c314b91a10d8c68a3acfe18 |
| Linux / Linux | affected 5.2; unaffected 0 before 5.2; unaffected 5.10.270 through 5.10.*; unaffected 5.15.221 through 5.15.*; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.51 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/8fde7e4a366184e9a6aa95541e52933a73c00a74
- https://git.kernel.org/stable/c/83f1abd62cc134700ba92e1e2dc650a49a185497
- https://git.kernel.org/stable/c/1ffed96ef986e2cdf986aa4a4506a5e6dcdf4456
- https://git.kernel.org/stable/c/58e0ee293ec5e06cacbe3953ad44042f1473dae9
- https://git.kernel.org/stable/c/ac9f878c468052af6571e8639ab1c3ae040b908f
- https://git.kernel.org/stable/c/33a81acd2d1d0667d4eff93cb90339fa53e617e8
- https://git.kernel.org/stable/c/bdaaf3074aedce8f1b173cc363d61cff5f6a585f
- https://git.kernel.org/stable/c/04cec690b1fd9d1c4c314b91a10d8c68a3acfe18