# CVE-2025-38391: usb: typec: altmodes/displayport: do not index invalid pin_assignments

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-07-25T12:53:31.223Z
- Modified: 2026-11-05T21:18:29.877Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; 4.19 (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.*; from 6.12.37 up to 6.12.*; from 6.15.6 up to 6.15.*; from 6.16 up to *)
- 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
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/c93bc959788ed9a1af7df57cb539837bdf790cee> (patch)
- <https://git.kernel.org/stable/c/114a977e0f6bf278e05eade055e13fc271f69cf7> (patch)
- <https://git.kernel.org/stable/c/621d5a3ef0231ab242f2d31eecec40c38ca609c5> (patch)
- <https://git.kernel.org/stable/c/2f535517b5611b7221ed478527e4b58e29536ddf> (patch)
- <https://git.kernel.org/stable/c/45e9444b3b97eaf51a5024f1fea92f44f39b50c6> (patch)
- <https://git.kernel.org/stable/c/5581e694d3a1c2f32c5a51d745c55b107644e1f8> (patch)
- <https://git.kernel.org/stable/c/47cb5d26f61d80c805d7de4106451153779297a1> (patch)
- <https://git.kernel.org/stable/c/af4db5a35a4ef7a68046883bfd12468007db38f1> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38391](https://www.cve.org/CVERecord?id=CVE-2025-38391), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38391](https://nvd.nist.gov/vuln/detail/CVE-2025-38391), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38391 · Whole record: https://cve.day/CVE-2025-38391.json · Rebuilt by cve.day 2026-11-25T22:59:01.685Z
