android_kernel_motorola_sm6375/drivers/bluetooth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Raphael Pinsonneault-Thibeault 297dbf8798 Bluetooth: btusb: reorder cleanup in btusb_disconnect to avoid UAF
[ Upstream commit 23d22f2f71768034d6ef86168213843fc49bf550 ]

There is a KASAN: slab-use-after-free read in btusb_disconnect().
Calling "usb_driver_release_interface(&btusb_driver, data->intf)" will
free the btusb data associated with the interface. The same data is
then used later in the function, hence the UAF.

Fix by moving the accesses to btusb data to before the data is free'd.

Reported-by: syzbot+2fc81b50a4f8263a159b@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=2fc81b50a4f8263a159b
Tested-by: syzbot+2fc81b50a4f8263a159b@syzkaller.appspotmail.com
Fixes: fd913ef7ce ("Bluetooth: btusb: Add out-of-band wakeup support")
Signed-off-by: Raphael Pinsonneault-Thibeault <rpthibeault@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-12-03 12:45:16 +01:00
..
ath3k.c Bluetooth: ath3k: Fix multiple issues reported by checkpatch.pl 2024-07-05 09:08:21 +02:00
bcm203x.c
bfusb.c
bluecard_cs.c
bpa10x.c
bt3c_cs.c
btbcm.c
btbcm.h
btintel.c Bluetooth: btintel: Fixe build regression 2024-04-13 12:51:40 +02:00
btintel.h
btmrvl_debugfs.c
btmrvl_drv.h
btmrvl_main.c
btmrvl_sdio.c Bluetooth: btmrvl: Use IRQF_NO_AUTOEN flag in request_irq() 2024-11-08 16:20:36 +01:00
btmrvl_sdio.h
btmtksdio.c
btmtkuart.c Bluetooth: btmtkuart: fix recv_buf() return value 2024-01-25 14:34:26 -08:00
btqca.c
btqca.h
btqcomsmd.c
btrsi.c
btrtl.c Bluetooth: btrtl: Prevent potential NULL dereference 2025-05-02 07:39:19 +02:00
btrtl.h
btsdio.c
btusb.c Bluetooth: btusb: reorder cleanup in btusb_disconnect to avoid UAF 2025-12-03 12:45:16 +01:00
btwilink.c
dtl1_cs.c
h4_recv.h
hci_ag6xx.c
hci_ath.c
hci_bcm.c
hci_bcsp.c Bluetooth: bcsp: receive data only if registered 2025-12-03 12:45:14 +01:00
hci_h4.c
hci_h5.c
hci_intel.c
hci_ldisc.c Bluetooth: hci_uart: Fix another race during initialization 2025-05-02 07:39:18 +02:00
hci_ll.c
hci_mrvl.c
hci_nokia.c Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe() 2023-09-23 10:59:42 +02:00
hci_qca.c
hci_serdev.c
hci_uart.h Bluetooth: hci_uart: Fix another race during initialization 2025-05-02 07:39:18 +02:00
hci_vhci.c Bluetooth: vhci: Fix race when opening vhci device 2023-10-25 11:53:20 +02:00
Kconfig
Makefile