Re: [PATCH net] net: phy: air_en8811h: refuse a firmware blob that is not a multiple of 4

From: Andrew Lunn

Date: Wed Sep 02 2026 - 08:39:34 EST


On Wed, Sep 02, 2026 at 08:05:25AM +0000, Aleksei Sviridkin wrote:
> The download loop streams the blob into the MCU as 32-bit words and
> reads the last word past the end of a blob whose size is not a multiple
> of four. The shipped blobs happen to be aligned, so the overread never
> showed; a truncated or foreign file would carry up to three bytes of
> whatever follows it into the MCU. Reject it before the first write
> instead.
>
> Fixes: 71e79430117d ("net: phy: air_en8811h: Add the Airoha EN8811H PHY driver")
> Assisted-by: LLM
> Signed-off-by: Aleksei Sviridkin <f@xxxxxx>

Does this bother people?

https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html

I think this should be merged via net-next.

Other than that: Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew