CVE-2025-38391

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38391
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38391.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38391
Downstream
Related
Published
2025-07-25T12:53:31.223Z
Modified
2025-11-28T02:35:05.655637Z
Summary
usb: typec: altmodes/displayport: do not index invalid pin_assignments
Details

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, DPPINASSIGNF. In this case, calls to pinassignment_show will cause a BRK exception due to an out of bounds array access.

Prevent for loop in pinassignmentshow from accessing invalid values in pinassignments by adding DPPINASSIGNMAX value in typecdp.h and using i < DPPINASSIGNMAX as a loop condition.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38391.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0e3bb7d6894d9b6e67d6382bb03a46a1dc989588
Fixed
c93bc959788ed9a1af7df57cb539837bdf790cee
Fixed
114a977e0f6bf278e05eade055e13fc271f69cf7
Fixed
621d5a3ef0231ab242f2d31eecec40c38ca609c5
Fixed
2f535517b5611b7221ed478527e4b58e29536ddf
Fixed
45e9444b3b97eaf51a5024f1fea92f44f39b50c6
Fixed
5581e694d3a1c2f32c5a51d745c55b107644e1f8
Fixed
47cb5d26f61d80c805d7de4106451153779297a1
Fixed
af4db5a35a4ef7a68046883bfd12468007db38f1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
5.4.296
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.240
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.187
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.144
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.97
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.37
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.6