CVE-2026-31729
JSON

7.8high

usb: typec: ucsi: validate connector number in ucsi_notify_common()

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.13% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: usb: typec: ucsi: validate connector number in ucsi_notify_common() The connector number extracted from CCI via UCSI_CCI_CONNECTOR() is a 7-bit field (0-127) that is used to index into the connector array in ucsi_connector_change(). However, the array is only allocated for the number of connectors reported by the device (typically 2-4 entries). A malicious or malfunctioning device could report an out-of-range connector number in the CCI, causing an out-of-bounds array access in ucsi_connector_change(). Add a bounds check in ucsi_notify_common(), the central point where CCI is parsed after arriving from hardware, so that bogus connector numbers are rejected before they propagate further.

Affected

Product or packageVersionsReported by
Linux Linuxfrom bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before f6dcbf2b024d55549959402f1db6c614e51d52cb, from bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before f4e608fe12b7ac6a4a57176ab0296bb5a110a078, from bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before 98429e9ec89a5e3a204112dfaa2dbe6ca28493a0, from bdc62f2bae8fb0e8e99574de5232f0a3c54a27df before d2d8c17ac01a1b1f638ea5d340a884ccc5015186, 5.5
Not affected: before 5.5, from 6.12.81 up to 6.12.*, from 6.18.22 up to 6.18.*, from 6.19.12 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 5.5 before 6.12.81, from 6.13 before 6.18.22, from 6.19 before 6.19.12, 7.0NVD

Classification

CWE-129

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: ucsi: validate connector number in ucsi_notify_common() The connector number extracted from CCI via UCSI_CCI_CONNECTOR() is a 7-bit field (0-127) that is used to index into the connector array in ucsi_connector_change(). However, the array is only allocated for the number of connectors reported by the device (typically 2-4 entries). A malicious or malfunctioning device could report an out-of-range connector number in the CCI, causing an out-of-bounds array access in ucsi_connector_change(). Add a bounds check in ucsi_notify_common(), the central point where CCI is parsed after arriving from hardware, so that bogus connector numbers are rejected before they propagate further.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: usb: typec: ucsi: validar número de conector en ucsi_notify_common() El número de conector extraído de CCI a través de UCSI_CCI_CONNECTOR() es un campo de 7 bits (0-127) que se utiliza para indexar en el array de conectores en ucsi_connector_change(). Sin embargo, el array solo se asigna para el número de conectores reportados por el dispositivo (típicamente 2-4 entradas). Un dispositivo malicioso o que funciona mal podría reportar un número de conector fuera de rango en el CCI, causando un acceso a array fuera de límites en ucsi_connector_change(). Añadir una comprobación de límites en ucsi_notify_common(), el punto central donde se analiza el CCI después de llegar del hardware, para que los números de conector falsos sean rechazados antes de que se propaguen más.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31729 changed 2026-11-06CVE Terms of Use
NVDCVE-2026-31729 changed 2026-11-11Public domain