linux/drivers/staging/rtl8723bs
Navaneeth K 502ddcc405 staging: rtl8723bs: fix out-of-bounds read in OnBeacon ESR IE parsing
The Extended Supported Rates (ESR) IE handling in OnBeacon accessed
*(p + 1 + ielen) and *(p + 2 + ielen) without verifying that these
offsets lie within the received frame buffer. A malformed beacon with
an ESR IE positioned at the end of the buffer could cause an
out-of-bounds read, potentially triggering a kernel panic.

Add a boundary check to ensure that the ESR IE body and the subsequent
bytes are within the limits of the frame before attempting to access
them.

This prevents OOB reads caused by malformed beacon frames.

Signed-off-by: Navaneeth K <knavaneeth786@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-11-27 15:16:37 +01:00
..
core staging: rtl8723bs: fix out-of-bounds read in OnBeacon ESR IE parsing 2025-11-27 15:16:37 +01:00
hal staging: rtl8723bs: remove dead commented code from odm.c 2025-11-26 14:21:02 +01:00
include staging: rtl8723bs: remove custom FIELD_OFFSET macro 2025-11-26 14:21:02 +01:00
os_dep staging: rtl8723bs: use standard offsetof in cfg80211 operations 2025-11-26 14:21:02 +01:00
Kconfig staging: rtl8723bs: select CONFIG_CRYPTO_LIB_AES 2025-03-20 07:10:20 -07:00
Makefile staging: rtl8723bs: remove os_dep/recv_linux.c 2025-09-06 15:55:13 +02:00
TODO staging: rtl8723bs: Remove TODO contact information 2024-11-10 08:03:30 +01:00