CVE-2026-90025: usb: typec: ucsi: displayport: Fix OOB altmode array index
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-90025 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 5.10.270 with commit 8fde7e4a366184e9a6aa95541e52933a73c00a74 Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 5.15.221 with commit 83f1abd62cc134700ba92e1e2dc650a49a185497 Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.1.188 with commit 1ffed96ef986e2cdf986aa4a4506a5e6dcdf4456 Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.6.157 with commit 58e0ee293ec5e06cacbe3953ad44042f1473dae9 Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.12.110 with commit ac9f878c468052af6571e8639ab1c3ae040b908f Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 6.18.51 with commit 33a81acd2d1d0667d4eff93cb90339fa53e617e8 Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 7.2.5 with commit bdaaf3074aedce8f1b173cc363d61cff5f6a585f Issue introduced in 5.2 with commit af8622f6a585d8d82b11cd7987e082861fd0edd3 and fixed in 7.3-rc2 with commit 04cec690b1fd9d1c4c314b91a10d8c68a3acfe18
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90025
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/usb/typec/ucsi/displayport.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
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