linux-stable/drivers/net
Oliver Neukum 49909c9f84 CDC-NCM: avoid overflow in sanity checking
commit 8d2b1a1ec9 upstream.

A broken device may give an extreme offset like 0xFFF0
and a reasonable length for a fragment. In the sanity
check as formulated now, this will create an integer
overflow, defeating the sanity check. Both offset
and offset + len need to be checked in such a manner
that no overflow can occur.
And those quantities should be unsigned.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-02 11:47:51 +01:00
..
appletalk
arcnet
bonding bonding: fix data-races around agg_select_timer 2022-02-23 12:03:12 +01:00
caif
can can: tcan4x5x: regmap: fix max register value 2022-02-01 17:27:13 +01:00
dsa net: dsa: lan9303: add VLAN IDs to master device 2022-02-23 12:03:11 +01:00
ethernet ice: enable parsing IPSEC SPI headers for RSS 2022-02-23 12:03:22 +01:00
fddi
fjes fjes: Check for error irq 2021-12-29 12:28:44 +01:00
hamradio yam: fix a memory leak in yam_siocdevprivate() 2022-02-01 17:27:13 +01:00
hippi
hyperv
ieee802154 net: ieee802154: ca8210: Fix lifs/sifs periods 2022-02-23 12:03:11 +01:00
ipa net: ipa: prevent concurrent replenish 2022-02-05 12:38:56 +01:00
ipvlan
mctp
mdio net: mdio: aspeed: Add missing MODULE_DEVICE_TABLE 2022-02-16 12:56:30 +01:00
netdevsim ipv6: fix data-race in fib6_info_hw_flags_set / fib6_purge_rt 2022-02-23 12:03:10 +01:00
pcs
phy net: phy: mediatek: remove PHY mode check on MT7531 2022-02-23 12:03:12 +01:00
plip
ppp ppp: ensure minimum packet size in ppp_write() 2022-01-27 11:03:52 +01:00
slip
team
usb CDC-NCM: avoid overflow in sanity checking 2022-03-02 11:47:51 +01:00
vmxnet3 vmxnet3: fix minimum vectors alloc issue 2021-12-17 10:30:14 +01:00
wan
wireguard wireguard: ratelimiter: use kvcalloc() instead of kvzalloc() 2021-12-08 09:04:46 +01:00
wireless brcmfmac: firmware: Fix crash in brcm_alt_fw_path 2022-02-23 12:03:11 +01:00
wwan net: wwan: Fix MRU mismatch issue which may lead to data connection lost 2022-01-27 11:05:40 +01:00
xen-netback xen/netback: don't queue unlimited number of packages 2021-12-22 09:32:52 +01:00
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c net: macsec: Verify that send_sci is on when setting Tx sci explicitly 2022-02-08 18:34:09 +01:00
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.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: avoid double free in tun_free_netdev 2021-12-29 12:29:03 +01:00
veth.c veth: fix races around rq->rx_notify_masked 2022-02-16 12:56:30 +01:00
virtio_net.c
vrf.c vrf: don't run conntrack on vrf with !dflt qdisc 2021-12-14 10:57:08 +01:00
vsockmon.c
vxlan.c
xen-netfront.c xen/netfront: harden netfront against event channel storms 2021-12-22 09:32:51 +01:00