android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pavel Skripkin 2e5f08a5f8 net: mcs7830: handle usb read errors properly
[ Upstream commit d668769eb9c52b150753f1653f7f5a0aeb8239d2 ]

Syzbot reported uninit value in mcs7830_bind(). The problem was in
missing validation check for bytes read via usbnet_read_cmd().

usbnet_read_cmd() internally calls usb_control_msg(), that returns
number of bytes read. Code should validate that requested number of bytes
was actually read.

So, this patch adds missing size validation check inside
mcs7830_get_reg() to prevent uninit value bugs

Reported-and-tested-by: [email protected]
Fixes: 2a36d70834 ("USB: driver for mcs7830 (aka DeLOCK) USB ethernet adapter")
Signed-off-by: Pavel Skripkin <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2022-01-27 09:19:37 +01:00
..
appletalk net: appletalk: cops: Fix data race in cops_probe1 2021-06-16 11:59:36 +02:00
arcnet
bonding bonding: fix ad_actor_system option setting to default 2021-12-29 12:23:35 +01:00
caif net: caif: fix memory leak in ldisc_open 2021-06-30 08:47:47 -04:00
can can: xilinx_can: xcan_probe(): check for error irq 2022-01-27 09:19:37 +01:00
dsa net: dsa: rtl8366rb: Fix off-by-one bug 2021-11-17 09:48:34 +01:00
ethernet net/mlx5: Set command entry semaphore up once got index free 2022-01-27 09:19:37 +01:00
fddi net: fddi: fix UAF in fza_probe 2021-07-25 14:35:15 +02:00
fjes fjes: Check for error irq 2021-12-29 12:23:35 +01:00
hamradio hamradio: improve the incomplete fix to avoid NPD 2021-12-29 12:23:38 +01:00
hippi
hyperv
ieee802154 ieee802154: atusb: fix uninit value in atusb_set_extended_addr 2022-01-11 15:23:31 +01:00
ipvlan
netdevsim netdevsim: Zero-initialize memory for new map's value in function nsim_bpf_map_alloc 2021-12-22 09:29:38 +01:00
phy net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ8081 2022-01-11 15:23:32 +01:00
plip
ppp ppp: ensure minimum packet size in ppp_write() 2022-01-27 09:19:35 +01:00
slip
team
usb net: mcs7830: handle usb read errors properly 2022-01-27 09:19:37 +01:00
vmxnet3 vmxnet3: do not stop tx queues after netif_device_detach() 2021-11-17 09:48:21 +01:00
wan
wimax
wireless mwifiex: Fix possible ABBA deadlock 2022-01-27 09:19:33 +01:00
xen-netback xen/netback: don't queue unlimited number of packages 2021-12-22 09:29:41 +01:00
dummy.c
eql.c
geneve.c net: geneve: modify IP header check in geneve6_xmit_skb and geneve_xmit_skb 2021-05-14 09:44:31 +02:00
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: fix bonding active backup with arp monitoring 2021-11-26 10:47:21 +01:00
veth.c veth: Do not record rx queue hint in veth_xmit 2022-01-16 09:15:38 +01:00
virtio_net.c virtio-net: use NETIF_F_GRO_HW instead of NETIF_F_LRO 2021-08-26 08:36:18 -04:00
vrf.c vrf: don't run conntrack on vrf with !dflt qdisc 2021-12-14 14:48:59 +01:00
vsockmon.c
vxlan.c vxlan: add missing rcu_read_lock() in neigh_reduce() 2021-07-14 16:53:31 +02:00
xen-netfront.c xen/netfront: harden netfront against event channel storms 2021-12-22 09:29:40 +01:00