]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4bafd2f20d180a951ac1d114af3f2deaad792938
tree2e808d1758423e00a4bda438ba502fa12669e7f9
parent0db8ed8daabc50dda2f9960368ebd1fea9a0d2a9
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