staging: wlan-ng: Disable buggy MIB ioctl
authorKees Cook <keescook@chromium.org>
Wed, 18 Aug 2021 08:19:37 +0000 (01:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 10:45:28 +0000 (12:45 +0200)
commit0a9b92020d755c4c7a50c7b4b9a0fa047e393083
treeaeba7c1d7d1547cfdd40b94ac2432f8c18b76d49
parentcbe34165cc1b7d1110b268ba8b9f30843c941639
staging: wlan-ng: Disable buggy MIB ioctl

struct hfa384x_wpa_data ends with a flexible array, but it is allocated
on the stack. This means it can never hold any data. Disable the
memcpy() calls in and out of the structure, since it must always be
zero. This could never have worked.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Igor Matheus Andrade Torrente <igormtorrente@gmail.com>
Cc: linux-staging@lists.linux.dev
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210818081937.1668775-1-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2mib.c