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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
c1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f to < cea949203faef9cb783adc7b978cce056271e057affectedc1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f to < 156b6f0aec6108909b0c4aedc78865b12766b347affectedc1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f to < bd24d92af4ae021b6209f28e9a57e1bf2260d4fdaffectedc1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f to < 0edd1e21587b0483c7ceb993b9fb9668bbef7433affectedc1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f to < 5af2719b460ab904c504fc069d1dd2a3aa2b22b0affectedc1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f to < 288a81a8507052bcfbf884d39a463c44c42c5fd9affected
Linux Linux
Default version status: affected
4.13affected0 to < 4.13unaffected6.1.176 to ≤ 6.1.*unaffected6.6.143 to ≤ 6.6.*unaffected6.12.93 to ≤ 6.12.*unaffected6.18.35 to ≤ 6.18.*unaffected7.0.12 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected
References
- 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 ↗