usb: typec: altmodes/displayport: do not index invalid pin_assignments (Linux Linux)

CVE-2025-38391
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-125 — Out-of-bounds Read

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 < c93bc959788ed9a1af7df57cb539837bdf790cee ; affected 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 < 114a977e0f6bf278e05eade055e13fc271f69cf7 ; affected 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 < 621d5a3ef0231ab242f2d31eecec40c38ca609c5 ; affected 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 < 2f535517b5611b7221ed478527e4b58e29536ddf ; affected 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 < 45e9444b3b97eaf51a5024f1fea92f44f39b50c6 ; affected 0e3bb7d6894d9b6e67d6382bb03a46a1dc989588 < 5581e694d3a1c2f32c5a51d745c55b107644e1f8
Linux · Linuxaffected 4.19 ; unaffected 0 < 4.19 ; unaffected 5.4.296 ≤ 5.4.* ; unaffected 5.10.240 ≤ 5.10.* ; unaffected 5.15.187 ≤ 5.15.* ; unaffected 6.1.144 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD