android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xiaomeng Tong f6cb1470ba carl9170: tx: fix an incorrect use of list iterator
commit 54a6f29522da3c914da30e50721dedf51046449a upstream.

If the previous list_for_each_entry_continue_rcu() don't exit early
(no goto hit inside the loop), the iterator 'cvif' after the loop
will be a bogus pointer to an invalid structure object containing
the HEAD (&ar->vif_list). As a result, the use of 'cvif' after that
will lead to a invalid memory access (i.e., 'cvif->id': the invalid
pointer dereference when return back to/after the callsite in the
carl9170_update_beacon()).

The original intention should have been to return the valid 'cvif'
when found in list, NULL otherwise. So just return NULL when no
entry found, to fix this bug.

Cc: stable@vger.kernel.org
Fixes: 1f1d9654e1 ("carl9170: refactor carl9170_update_beacon")
Signed-off-by: Xiaomeng Tong <xiam0nd.tong@gmail.com>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220328122820.1004-1-xiam0nd.tong@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-14 18:11:48 +02:00
..
appletalk
arcnet net: arcnet: com20020: Fix null-ptr-deref in com20020pci_probe() 2022-03-08 19:07:48 +01:00
bonding bonding: fix data-races around agg_select_timer 2022-02-23 11:59:58 +01:00
caif
can can: xilinx_can: mark bit timing constants as const 2022-06-14 18:11:39 +02:00
dsa net: dsa: lantiq_gswip: Don't set GSWIP_MII_CFG_RMII_CLK 2022-05-09 09:03:26 +02:00
ethernet eth: tg3: silence the GCC 12 array-bounds warning 2022-06-14 18:11:29 +02:00
fddi
fjes fjes: Check for error irq 2021-12-29 12:23:35 +01:00
hamradio hamradio: remove needs_free_netdev to avoid UAF 2022-05-09 09:03:20 +02:00
hippi drivers: net: hippi: Fix deadlock in rr_close() 2022-05-09 09:03:27 +02:00
hyperv hv_netvsc: Add check for kvmalloc_array 2022-03-23 09:12:07 +01:00
ieee802154 net: ieee802154: ca8210: Fix lifs/sifs periods 2022-02-23 11:59:58 +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: Allow probing without .driver_data 2022-06-14 18:11:29 +02:00
plip
ppp ppp: ensure minimum packet size in ppp_write() 2022-01-27 09:19:35 +01:00
slip drivers: net: slip: fix NPD bug in sl_tx_timeout() 2022-04-20 09:19:37 +02:00
team
usb net: usb: aqc111: Fix out-of-bounds accesses in RX fixup 2022-04-20 09:19:37 +02:00
vmxnet3 net: vmxnet3: fix possible NULL pointer dereference in vmxnet3_rq_cleanup() 2022-05-25 09:14:35 +02:00
wan
wimax
wireless carl9170: tx: fix an incorrect use of list iterator 2022-06-14 18:11:48 +02:00
xen-netback Revert "xen-netback: Check for hotplug-status existence before watching" 2022-03-16 13:21:47 +01:00
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:24:31 +01:00
macvlan.c
macvtap.c macvtap: advertise link netns via netlink 2022-04-15 14:18:34 +02:00
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 tuntap: add sanity checks about msg_controllen in sendmsg 2022-04-15 14:18:34 +02:00
thunderbolt.c
tun.c tuntap: add sanity checks about msg_controllen in sendmsg 2022-04-15 14:18:34 +02:00
veth.c veth: Ensure eth header is in skb's linear part 2022-04-20 09:19:34 +02:00
virtio_net.c
vrf.c
vsockmon.c
vxlan.c vxlan: fix error return code in vxlan_fdb_append 2022-04-27 13:50:47 +02:00
xen-netfront.c xen/netfront: react properly to failing gnttab_end_foreign_access_ref() 2022-03-11 11:22:39 +01:00