CVE-2026-63958: usb: typec: ucsi: validate connector number in ucsi_connector_change()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
usb: typec: ucsi: validate connector number in ucsi_connector_change()
The connector number in a UCSI CCI notification is a 7-bit field supplied by the PPM. ucsi_connector_change() uses it to index the ucsi->connector[] array without checking it against the number of connectors the PPM reported at init time, so a buggy or malicious PPM (EC firmware, or an I2C-attached UCSI controller on the ccg / stm32g0 / glink transports) can drive schedule_work() on memory past the end of the array.
Reject connector numbers that are zero or exceed cap.num_connectors before dereferencing the array.
The Linux kernel CVE team has assigned CVE-2026-63958 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.176 with commit cea949203faef9cb783adc7b978cce056271e057 Fixed in 6.6.143 with commit 156b6f0aec6108909b0c4aedc78865b12766b347 Fixed in 6.12.93 with commit bd24d92af4ae021b6209f28e9a57e1bf2260d4fd Fixed in 6.18.35 with commit 0edd1e21587b0483c7ceb993b9fb9668bbef7433 Fixed in 7.0.12 with commit 5af2719b460ab904c504fc069d1dd2a3aa2b22b0 Fixed in 7.1 with commit 288a81a8507052bcfbf884d39a463c44c42c5fd9
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-63958
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/usb/typec/ucsi/ucsi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/cea949203faef9cb783adc7b978cce056271e057 https://git.kernel.org/stable/c/156b6f0aec6108909b0c4aedc78865b12766b347 https://git.kernel.org/stable/c/bd24d92af4ae021b6209f28e9a57e1bf2260d4fd https://git.kernel.org/stable/c/0edd1e21587b0483c7ceb993b9fb9668bbef7433 https://git.kernel.org/stable/c/5af2719b460ab904c504fc069d1dd2a3aa2b22b0 https://git.kernel.org/stable/c/288a81a8507052bcfbf884d39a463c44c42c5fd9