WSL2-Linux-Kernel/drivers/staging/ks7010
Zhang Shurong baf420e303 staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()
commit 5f1c7031e0 upstream.

The "exc->key_len" is a u16 that comes from the user.  If it's over
IW_ENCODING_TOKEN_MAX (64) that could lead to memory corruption.

Fixes: b121d84882 ("staging: ks7010: simplify calls to memcpy()")
Cc: stable <stable@kernel.org>
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/tencent_5153B668C0283CAA15AA518325346E026A09@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-03 10:22:43 +02:00
..
Kconfig staging: ks7010: select CRYPTO_HASH/CRYPTO_MICHAEL_MIC 2021-11-18 19:16:52 +01:00
Makefile
TODO
eap_packet.h
ks7010_sdio.c staging: ks7010: Fix the initialization of the 'sleep_status' structure 2021-07-27 15:07:43 +02:00
ks_hostif.c staging: ks7010: ks_hostif: Remove a bunch of unused variables 2021-05-10 11:19:25 +02:00
ks_hostif.h staging: ks7010: Wrap macro definitions in parenthesis 2021-06-18 13:02:54 +02:00
ks_wlan.h
ks_wlan_ioctl.h
ks_wlan_net.c staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext() 2023-08-03 10:22:43 +02:00