aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorPhil Turnbull <[email protected]>2022-11-23 15:35:42 +0000
committerKalle Valo <[email protected]>2022-11-24 16:11:23 +0000
commitf9b62f9843c7b0afdaecabbcebf1dbba18599408 (patch)
tree40c410d5fe4e760fccaa46e9fc8beaa9ce517efc /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentwifi: wilc1000: validate length of IEEE80211_P2P_ATTR_OPER_CHANNEL attribute (diff)
downloadkernel-f9b62f9843c7b0afdaecabbcebf1dbba18599408.tar.gz
kernel-f9b62f9843c7b0afdaecabbcebf1dbba18599408.zip
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 <[email protected]> Tested-by: Ajay Kathat <[email protected]> Acked-by: Ajay Kathat <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions