linux/drivers/staging/ks7010
Zhang Shurong 7ae9f55a49 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>
History 2023-08-03 10:24:12 +02:00
..
eap_packet.h staging: ks7010: remove not used definition WPA_CAPABILITY_PREAUTH 2018-05-14 14:07:05 +02:00
Kconfig staging: ks7010: select CRYPTO_HASH/CRYPTO_MICHAEL_MIC 2021-10-13 15:10:21 +02:00
ks7010_sdio.c staging/ks7010: Remove redundant 'flush_workqueue()' calls 2022-02-15 17:05:43 +01:00
ks_hostif.c staging: ks7010: remove null check after call container_of() 2022-05-19 17:42:41 +02:00
ks_hostif.h staging: ks7010: Wrap macro definitions in parenthesis 2021-06-18 13:02:54 +02:00
ks_wlan.h staging/ks7010: replace SME taslet with work 2022-04-12 15:53:50 +02:00
ks_wlan_ioctl.h staging: ks7010: add SPDX identifiers to all files 2018-05-06 18:58:36 -07:00
ks_wlan_net.c staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext() 2023-08-03 10:24:12 +02:00
Makefile staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
TODO staging: ks7010: remove me from CC list 2020-05-05 12:36:04 +02:00