Re: [PATCH] Staging: rtl8723bs: rtw_wlan_util: Add size check of SSID IE

2020-04-21 Thread Dan Carpenter
On Tue, Apr 21, 2020 at 08:08:06PM +0300, Denis Straghkov wrote: > /* checking SSID */ > + ssid_len = 0; > p = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, _SSID_IE_, , > bssid->IELength - _FIXED_IE_LENGTH_); > - if (!p) { > - DBG_871X("%s marc: cannot find SSID for

[PATCH] Staging: rtl8723bs: rtw_wlan_util: Add size check of SSID IE

2020-04-21 Thread Denis Straghkov
Add size check of SSID information element in incoming 802.11 frames, to prevent memcpy() of IE in array bssid->Ssid.Ssid, with size more than 32 bytes. Signed-off-by: Denis Straghkov --- .../staging/rtl8723bs/core/rtw_wlan_util.c| 24 +++ 1 file changed, 9 insertions(+), 15