5.5medium
usb: typec: altmodes/displayport: do not index invalid pin_assignments
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: usb: typec: altmodes/displayport: do not index invalid pin_assignments A poorly implemented DisplayPort Alt Mode port partner can indicate that its pin assignment capabilities are greater than the maximum value, DP_PIN_ASSIGN_F. In this case, calls to pin_assignment_show will cause a BRK exception due to an out of bounds array access. Prevent for loop in pin_assignment_show from accessing invalid values in pin_assignments by adding DP_PIN_ASSIGN_MAX value in typec_dp.h and using i < DP_PIN_ASSIGN_MAX as a loop condition.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 before c93bc959788ed9a1af7df57cb539837bdf790cee, from 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 before 114a977e0f6bf278e05eade055e13fc271f69cf7, from 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 before 621d5a3ef0231ab242f2d31eecec40c38ca609c5, from 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 before 2f535517b5611b7221ed478527e4b58e29536ddf, from 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 before 45e9444b3b97eaf51a5024f1fea92f44f39b50c6, from 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 before 5581e694d3a1c2f32c5a51d745c55b107644e1f8, from 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 before 47cb5d26f61d80c805d7de4106451153779297a1, from 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 before af4db5a35a4ef7a68046883bfd12468007db38f1 and 1 more Not affected: before 4.19, from 5.4.296 up to 5.4.*, from 5.10.240 up to 5.10.*, from 5.15.187 up to 5.15.*, from 6.1.144 up to 6.1.*, from 6.6.97 up to 6.6.* | CVE List |
| linux linux_kernel | from 4.19 before 5.4.296, from 5.5 before 5.10.240, from 5.11 before 5.15.187, from 5.16 before 6.1.144, from 6.2 before 6.6.97, from 6.7 before 6.12.37, from 6.13 before 6.15.6, 6.16 | NVD |
| debian debian_linux | 11.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: usb: typec: altmodes/displayport: do not index invalid pin_assignments A poorly implemented DisplayPort Alt Mode port partner can indicate that its pin assignment capabilities are greater than the maximum value, DP_PIN_ASSIGN_F. In this case, calls to pin_assignment_show will cause a BRK exception due to an out of bounds array access. Prevent for loop in pin_assignment_show from accessing invalid values in pin_assignments by adding DP_PIN_ASSIGN_MAX value in typec_dp.h and using i < DP_PIN_ASSIGN_MAX as a loop condition.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: typec: altmodes/displayport: no indexar asignaciones de pines no válidas. Un puerto asociado DisplayPort en modo alternativo mal implementado puede indicar que su capacidad de asignación de pines supera el valor máximo, DP_PIN_ASSIGN_F. En este caso, las llamadas a pin_assignment_show provocarán una excepción BRK debido a un acceso fuera de los límites de la matriz. Para evitar que el bucle for de pin_assignment_show acceda a valores no válidos en las asignaciones de pines, agregue el valor DP_PIN_ASSIGN_MAX en typec_dp.h y use i < DP_PIN_ASSIGN_MAX como condición de bucle.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38391 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2025-38391 changed 2026-11-05 | Public domain |