CVE-2025-38391

usb: typec: altmodes/displayport: do not index invalid pin_assignments

MEDIUM
5.5
CVSS Score
Published: July 25, 2025 at 12:53 PM UTC
Updated: June 17, 2026 at 09:16 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.19 ≤ v < 5.10.2404.19 ≤ v < 5.15.1874.19 ≤ v < 5.4.2964.19 ≤ v < 6.1.1444.19 ≤ v < 6.12.374.19 ≤ v < 6.15.64.19 ≤ v < 6.164.19 ≤ v < 6.6.975.11 ≤ v < 5.15.1875.16 ≤ v < 6.1.1445.5 ≤ v < 5.10.2406.13 ≤ v < 6.15.66.2 ≤ v < 6.6.976.7 ≤ v < 6.12.370e3bb7d6894d9b6e67d6382bb03a46a1dc9895884.196.16 rc16.16 rc26.16 rc36.16 rc4
Vendor states this is fixed in 114a977e0f6bf278e05eade055e13fc271f69cf7 (fixed)
Vendor states this is fixed in 2f535517b5611b7221ed478527e4b58e29536ddf (fixed)
Vendor states this is fixed in 45e9444b3b97eaf51a5024f1fea92f44f39b50c6 (fixed)
Vendor states this is fixed in 47cb5d26f61d80c805d7de4106451153779297a1 (fixed)
Vendor states this is fixed in 5581e694d3a1c2f32c5a51d745c55b107644e1f8 (fixed)
Vendor states this is fixed in 621d5a3ef0231ab242f2d31eecec40c38ca609c5 (fixed)
Vendor states this is fixed in af4db5a35a4ef7a68046883bfd12468007db38f1 (fixed)
Vendor states this is fixed in c93bc959788ed9a1af7df57cb539837bdf790cee (fixed)
Vendor states this is fixed in 4.19 (unaffected)
Vendor states this is fixed in 5.10.240 (unaffected)
Vendor states this is fixed in 5.15.187 (unaffected)
Vendor states this is fixed in 5.4.296 (unaffected)
Vendor states this is fixed in 6.1.144 (unaffected)
Vendor states this is fixed in 6.12.37 (unaffected)
Vendor states this is fixed in 6.15.6 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.97 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/114a977e0f6bf278e05eade055e13fc271f69cf7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2f535517b5611b7221ed478527e4b58e29536ddf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/45e9444b3b97eaf51a5024f1fea92f44f39b50c6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/47cb5d26f61d80c805d7de4106451153779297a1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5581e694d3a1c2f32c5a51d745c55b107644e1f8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/621d5a3ef0231ab242f2d31eecec40c38ca609c5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/af4db5a35a4ef7a68046883bfd12468007db38f1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c93bc959788ed9a1af7df57cb539837bdf790cee

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card