Re: (subset) [PATCH] leds: uleds: Fix potential buffer overread

From: Lee Jones

Date: Thu Jun 04 2026 - 11:53:21 EST


On Mon, 25 May 2026 01:55:53 +0200, Armin Wolf wrote:
> The name string supplied by userspace is not guaranteed to be
> null-terminated, so using strchr() on it might result in a buffer
> overread. The same thing will happen when said string is used by
> the LED class device.
>
> Fix this by using strnchr() instead and explicitly check that
> the name string is properly null-terminated.
>
> [...]

Applied, thanks!

[1/1] leds: uleds: Fix potential buffer overread
commit: 22b69b2c0a5573e58ad66693196fc86369980568

--
Lee Jones [李琼斯]