Re: [PATCH v3 01/22] staging: rtl8723bs: fix potential out-of-bounds read in rtw_restruct_wmm_ie

From: Greg Kroah-Hartman

Date: Mon Feb 23 2026 - 09:19:48 EST


On Sun, Feb 08, 2026 at 12:00:50PM +0100, luka.gejak@xxxxxxxxx wrote:
> From: Luka Gejak <luka.gejak@xxxxxxxxx>
>
> The current code checks 'i + 5 < in_len' at the end of the if statement.
> However, it accesses 'in_ie[i + 5]' before that check, which can lead
> to an out-of-bounds read. Move the length check to the beginning of the
> conditional to ensure the index is within bounds before accessing the
> array.
>
> Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Luka Gejak <luka.gejak@xxxxxxxxx>
> ---
> drivers/staging/rtl8723bs/core/rtw_mlme.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)

You have mixed bugfixes that should go into 7.0-final with cleanups in
the same series, makeing it a mess for me to try to apply this. Can you
resend this as two different series, one with just bugfixes for
7.0-final and the rest being the normal coding style cleanups? That way
I can apply them properly.

thanks,

greg k-h