Staging: rtl8723bs: rtw_wlan_util: Add size check of SSID IE
authorDenis Straghkov <d.straghkov@ispras.ru>
Tue, 21 Apr 2020 21:25:25 +0000 (00:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 11:27:55 +0000 (13:27 +0200)
commit370730894bece52b2bbd4eb727fbb39840cc0e14
tree2e808d1758423e00a4bda438ba502fa12669e7f9
parent1bc355cff2c56d4435413b881dfcdcf753430693
Staging: rtl8723bs: rtw_wlan_util: Add size check of SSID IE

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 <d.straghkov@ispras.ru>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200421212525.24962-1-d.straghkov@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_wlan_util.c