Re: [PATCH v1] power: supply: cros_usbpd: Limit port counts to EC_USB_PD_MAX_PORTS
Sebastian Reichel <[email protected]> Thu, 23 Jul 2026 17:06:34 +0200
| Newsgroups | dev.linux.lists.chrome-platform,org.kernel.vger.linux-pm,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 22 Jul 2026 19:50:59 +0000, Jameson Thies wrote:
> Currently the cros_usbpd-charger driver probe iterates based on raw
> charger port count returned by the embedded controller. The only check
> is against the number of USB PD ports which the embedded controller
> also defines. A malicious embedded controller could return an inaccurate
> port count (up to 255) resulting in an out of bounds write and
> subsequent memory corruption.
>
> [...]
Applied, thanks!
[1/1] power: supply: cros_usbpd: Limit port counts to EC_USB_PD_MAX_PORTS
commit: 657cd3a42e937276262c0a8ae6b01a87004309de
Best regards,
--
Sebastian Reichel <[email protected]>