summaryrefslogtreecommitdiff
path: root/scripts/ver_linux
diff options
context:
space:
mode:
authorPhil Turnbull <philipturnbull@github.com>2022-11-23 10:35:42 -0500
committerKalle Valo <kvalo@kernel.org>2022-11-24 18:11:23 +0200
commitf9b62f9843c7b0afdaecabbcebf1dbba18599408 (patch)
tree40c410d5fe4e760fccaa46e9fc8beaa9ce517efc /scripts/ver_linux
parent051ae669e4505abbe05165bebf6be7922de11f41 (diff)
downloadlinux-f9b62f9843c7b0afdaecabbcebf1dbba18599408.tar.gz
wifi: wilc1000: validate length of IEEE80211_P2P_ATTR_CHANNEL_LIST attribute
Validate that the IEEE80211_P2P_ATTR_CHANNEL_LIST attribute contains enough space for a 'struct wilc_attr_oper_ch'. If the attribute is too small then it can trigger an out-of-bounds write later in the function. 'struct wilc_attr_oper_ch' is variable sized so also check 'attr_len' does not extend beyond the end of 'buf'. Signed-off-by: Phil Turnbull <philipturnbull@github.com> Tested-by: Ajay Kathat <ajay.kathat@microchip.com> Acked-by: Ajay Kathat <ajay.kathat@microchip.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20221123153543.8568-4-philipturnbull@github.com
Diffstat (limited to 'scripts/ver_linux')
0 files changed, 0 insertions, 0 deletions