Re: [PATCH] i2c: cp2615: fix serial string NULL-deref at probe

From: Andi Shyti

Date: Thu Mar 19 2026 - 18:34:19 EST


Hi Johan,

On Mon, Mar 09, 2026 at 08:50:16AM +0100, Johan Hovold wrote:
> The cp2615 driver uses the USB device serial string as the i2c adapter
> name but does not make sure that the string exists.
>
> Verify that the device has a serial number before accessing it to avoid
> triggering a NULL-pointer dereference (e.g. with malicious devices).
>
> Fixes: 4a7695429ead ("i2c: cp2615: add i2c driver for Silicon Labs' CP2615 Digital Audio Bridge")
> Cc: stable@xxxxxxxxxxxxxxx # 5.13
> Cc: Bence Csókás <bence98@xxxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

merged to i2c/i2c-host-fixes.

Thanks,
Andi