android_kernel_oneplus_msm8998/drivers/net/wimax/i2400m
Johan Hovold 9cd4b86846 net: wimax/i2400m: fix NULL-deref at probe
[ Upstream commit 6e526fdff7be4f13b24f929a04c0e9ae6761291e ]

Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer or accessing memory beyond the endpoint array should a
malicious device lack the expected endpoints.

The endpoints are specifically dereferenced in the i2400m_bootrom_init
path during probe (e.g. in i2400mu_tx_bulk_out).

Fixes: f398e4240f ("i2400m/USB: probe/disconnect, dev init/shutdown
and reset backends")
Cc: Inaky Perez-Gonzalez <inaky@linux.intel.com>

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-20 10:04:54 +01:00
..
control.c net: wimax: i2400m: control.c: Cleaning up conjunction always evaluates to false 2014-06-11 00:13:16 -07:00
debug-levels.h
debugfs.c
driver.c wimax/i2400m: make return of 0 explicit 2014-05-21 17:16:24 -04:00
fw.c
i2400m-usb.h wimax: Remove extern from function prototypes 2013-09-24 16:46:22 -07:00
i2400m.h wimax: Remove extern from function prototypes 2013-09-24 16:46:22 -07:00
Kconfig
Makefile
netdev.c wimax/i2400m: remove open-coded skb_cow_head. 2014-03-29 17:49:47 -04:00
op-rfkill.c
rx.c
sysfs.c
tx.c
usb-debug-levels.h
usb-fw.c
usb-notif.c
usb-rx.c
usb-tx.c
usb.c net: wimax/i2400m: fix NULL-deref at probe 2017-12-20 10:04:54 +01:00