android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dongliang Mu 1eae30c011 usb: idmouse: fix an uninit-value in idmouse_open
[ Upstream commit bce2b0539933e485d22d6f6f076c0fcd6f185c4c ]

In idmouse_create_image, if any ftip_command fails, it will
go to the reset label. However, this leads to the data in
bulk_in_buffer[HEADER..IMGSIZE] uninitialized. And the check
for valid image incurs an uninitialized dereference.

Fix this by moving the check before reset label since this
check only be valid if the data after bulk_in_buffer[HEADER]
has concrete data.

Note that this is found by KMSAN, so only kernel compilation
is tested.

Reported-by: syzbot+79832d33eb89fb3cd092@syzkaller.appspotmail.com
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/r/20220922134847.1101921-1-dzm91@hust.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:22:58 +02:00
..
atm
c67x00
cdns3 usb: cdns3: fix issue with rearming ISO OUT endpoint 2022-09-28 11:04:02 +02:00
chipidea usb: chipidea: udc: check request status before setting device address 2022-06-29 08:58:47 +02:00
class USB: cdc-acm: Add Icom PMR F3400 support (0c26:0020) 2022-09-15 12:04:52 +02:00
common usb: ulpi: Call of_node_put correctly 2022-02-16 12:52:52 +01:00
core usb: add quirks for Lenovo OneLink+ Dock 2022-10-26 13:22:12 +02:00
dwc2 usb: dwc2: fix wrong order of phy_power_on and phy_init 2022-09-15 12:04:52 +02:00
dwc3 usb: dwc3: gadget: Avoid duplicate requests to enable Run/Stop 2022-09-28 11:04:00 +02:00
early
gadget usb: gadget: function: fix dangling pnp_string in f_printer.c 2022-10-26 13:22:39 +02:00
host usb: host: xhci: Fix potential memory leak in xhci_alloc_stream_info() 2022-10-26 13:22:57 +02:00
image
isp1760
misc usb: idmouse: fix an uninit-value in idmouse_open 2022-10-26 13:22:58 +02:00
mon usb: mon: make mmapped memory read only 2022-10-15 07:54:38 +02:00
mtu3 usb: mtu3: fix USB 3.0 dual-role-switch from device to host 2022-05-09 09:03:20 +02:00
musb usb: musb: Fix musb_gadget.c rxstate overflow bug 2022-10-26 13:22:58 +02:00
phy
renesas_usbhs usb: renesas: Fix refcount leak bug 2022-08-25 11:18:33 +02:00
roles
serial USB: serial: qcserial: add new usb-id for Dell branded EM7455 2022-10-15 07:54:39 +02:00
storage Revert "usb: storage: Add quirk for Samsung Fit flash" 2022-10-26 13:22:58 +02:00
typec usb: typec: altmodes/displayport: correct pin assignment for UFP receptacles 2022-09-15 12:04:52 +02:00
usbip usb: usbip: add missing device lock on tweak configuration cmd 2022-06-14 18:11:51 +02:00
Kconfig
Makefile
usb-skeleton.c