[PATCH 0/2] staging: rtl8723bs: fix two remote frame-handling bugs

Shayaun Nejad posted 2 patches 1 month ago
drivers/staging/rtl8723bs/core/rtw_ap.c   | 6 +++++-
drivers/staging/rtl8723bs/core/rtw_recv.c | 9 +++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
[PATCH 0/2] staging: rtl8723bs: fix two remote frame-handling bugs
Posted by Shayaun Nejad 1 month ago
Fix two rtl8723bs receive-side bugs reachable while handling remote
802.11 management frames.

The first patch fixes a use-after-free in validate_80211w_mgmt(),
where decryptor() can release the receive frame and return NULL before
the caller reuses cached pointers into that frame.

The second patch bounds the combined SUPP_RATES and EXT_SUPP_RATES IE
lengths copied from beacon/probe response data into the 16-byte
support_rate[] stack buffer in rtw_check_beacon_data().

Both issues were found by Kuzushi + deep-audit (Sonnet 4.6) and
manually verified against mainline.

Shayaun Nejad (2):
  staging: rtl8723bs: fix use-after-free in validate_80211w_mgmt after
    decryptor()
  staging: rtl8723bs: bound SUPP_RATES IE length in
    rtw_check_beacon_data

 drivers/staging/rtl8723bs/core/rtw_ap.c   | 6 +++++-
 drivers/staging/rtl8723bs/core/rtw_recv.c | 9 +++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

-- 
2.43.0