android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexey Kodanev 73304c7594 wifi: iwlegacy: 4965: fix potential off-by-one overflow in il4965_rs_fill_link_cmd()
[ Upstream commit a8eb8e6f7159c7c20c0ddac428bde3d110890aa7 ]

As a result of the execution of the inner while loop, the value
of 'idx' can be equal to LINK_QUAL_MAX_RETRY_NUM. However, this
is not checked after the loop and 'idx' is used to write the
LINK_QUAL_MAX_RETRY_NUM size array 'lq_cmd->rs_table[idx]' below
in the outer loop.

The fix is to check the new value of 'idx' inside the nested loop,
and break both loops if index equals the size. Checking it at the
start is now pointless, so let's remove it.

Detected using the static analysis tool - Svace.

Fixes: be663ab670 ("iwlwifi: split the drivers for agn and legacy devices 3945/4965")
Signed-off-by: Alexey Kodanev <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
2022-08-25 11:17:39 +02:00
..
appletalk
arcnet
bonding net: bonding: fix use-after-free after 802.3ad slave unbind 2022-07-07 17:36:50 +02:00
caif caif_virtio: fix race between virtio_device_ready() and ndo_open() 2022-07-07 17:36:49 +02:00
can can: m_can: m_can_tx_handler(): fix use after free of skb 2022-07-21 20:59:29 +02:00
dsa net: dsa: bcm_sf2: force pause link settings 2022-07-07 17:36:50 +02:00
ethernet igc: Remove _I_PHY_ID checking 2022-08-25 11:17:17 +02:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipvlan
netdevsim
phy net: sfp: fix memory leak in sfp_probe() 2022-07-21 20:59:25 +02:00
plip
ppp
slip
team
usb usbnet: Fix linkwatch use-after-free on disconnect 2022-08-25 11:17:22 +02:00
vmxnet3
wan
wimax
wireless wifi: iwlegacy: 4965: fix potential off-by-one overflow in il4965_rs_fill_link_cmd() 2022-08-25 11:17:39 +02:00
xen-netback xen/netback: avoid entering xenvif_rx_next_skb() with an empty rx queue 2022-07-21 20:59:16 +02:00
dummy.c
eql.c
geneve.c
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 net: sungem_phy: Add of_node_put() for reference returned by of_get_parent() 2022-08-03 11:59:39 +02:00
tap.c
thunderbolt.c
tun.c net: tun: avoid disabling NAPI twice 2022-07-07 17:36:50 +02:00
veth.c
virtio_net.c virtio-net: fix the race between refill work and close 2022-08-03 11:59:41 +02:00
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c xen/netfront: force data bouncing when backend is untrusted 2022-07-07 17:36:53 +02:00