Re: [PATCH] platform/chrome: wilco_ec: Reject out-of-bounds property length

From: Tzung-Bi Shih

Date: Thu Nov 19 2026 - 21:38:58 EST


On Wed, Nov 18, 2026 at 06:15:55PM +0800, Maoyi Xie wrote:
> wilco_ec_get_property() copies rs.length bytes from rs.data into
> prop_msg->data without checking rs.length, which comes from the EC.
> Both buffers hold WILCO_EC_PROPERTY_MAX_SIZE (4) bytes, so a larger
> length reads past rs on the stack and writes past the caller's message.
>
> Return -EBADMSG for such a length, as the file does for other bad
> responses.
>
> [...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[1/1] platform/chrome: wilco_ec: Reject out-of-bounds property length
commit: 1491040b5f396b23021f2905d18599e2e0bd5908

Thanks!