android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zheng Wang 8e3f03f4ef wifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach
[ Upstream commit 0f7352557a35ab7888bc7831411ec8a3cbe20d78 ]

This is the candidate patch of CVE-2023-47233 :
https://nvd.nist.gov/vuln/detail/CVE-2023-47233

In brcm80211 driver,it starts with the following invoking chain
to start init a timeout worker:

->brcmf_usb_probe
  ->brcmf_usb_probe_cb
    ->brcmf_attach
      ->brcmf_bus_started
        ->brcmf_cfg80211_attach
          ->wl_init_priv
            ->brcmf_init_escan
              ->INIT_WORK(&cfg->escan_timeout_work,
		  brcmf_cfg80211_escan_timeout_worker);

If we disconnect the USB by hotplug, it will call
brcmf_usb_disconnect to make cleanup. The invoking chain is :

brcmf_usb_disconnect
  ->brcmf_usb_disconnect_cb
    ->brcmf_detach
      ->brcmf_cfg80211_detach
        ->kfree(cfg);

While the timeout woker may still be running. This will cause
a use-after-free bug on cfg in brcmf_cfg80211_escan_timeout_worker.

Fix it by deleting the timer and canceling the worker in
brcmf_cfg80211_detach.

Fixes: e756af5b30 ("brcmfmac: add e-scan support.")
Signed-off-by: Zheng Wang <[email protected]>
Cc: [email protected]
[[email protected]: keep timer delete as is and cancel work just before free]
Signed-off-by: Arend van Spriel <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
2024-04-13 12:51:21 +02:00
..
appletalk
arcnet arcnet: restoring support for multiple Sohard Arcnet cards 2023-12-13 18:18:12 +01:00
bonding bonding: remove print in bond_verify_device_path 2024-02-23 08:25:05 +01:00
caif
can can: dev: can_restart(): fix race condition between controller restart and netif_carrier_on() 2023-11-20 10:30:09 +01:00
dsa net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe 2024-01-25 14:34:32 -08:00
ethernet octeontx2-af: Use separate handlers for interrupts 2024-03-26 18:22:25 -04:00
fddi
fjes fjes: fix memleaks in fjes_hw_setup 2024-02-23 08:24:51 +01:00
hamradio
hippi
hyperv hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed 2024-03-15 10:48:18 -04:00
ieee802154 net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show() 2023-11-08 11:23:35 +01:00
ipvlan ipvlan: add ipvlan_route_v6_outbound() helper 2023-11-28 16:50:16 +00:00
netdevsim
phy net: phy: micrel: populate .soft_reset for KSZ9131 2024-01-25 14:34:32 -08:00
plip
ppp ppp_async: limit MRU to 64K 2024-02-23 08:25:07 +01:00
slip
team team: Fix use-after-free when an option instance allocation fails 2023-12-20 15:41:25 +01:00
usb sr9800: Add check for usbnet_get_endpoints 2024-03-26 18:22:17 -04:00
vmxnet3
wan net: remove unneeded break 2024-02-23 08:25:04 +01:00
wimax
wireless wifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach 2024-04-13 12:51:21 +02:00
xen-netback xen-netback: properly sync TX responses 2024-02-23 08:25:11 +01:00
dummy.c
eql.c
geneve.c geneve: make sure to pull inner header in geneve_rx() 2024-03-15 10:48:14 -04:00
gtp.c gtp: fix use-after-free and null-ptr-deref in gtp_newlink() 2024-03-06 14:36:09 +00:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c net: add DEV_STATS_READ() helper 2023-11-20 10:30:10 +01:00
macvlan.c macvlan: Don't propagate promisc change to lower dev in passthru 2023-11-28 16:50:17 +00:00
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 net: thunderbolt: Fix TCPv6 GSO checksum calculation 2023-10-10 21:46:41 +02:00
tun.c tun: Fix xdp_rxq_info's queue_index when detaching 2024-03-06 14:36:08 +00:00
veth.c veth: Fixing transmit return status for dropped packets 2023-09-23 10:59:58 +02:00
virtio_net.c virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings 2024-02-23 08:25:03 +01:00
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c