In the Linux kernel, the following vulnerability has been resolved:
wifi: ath9k: verify the expected usb_endpoints are present
The bug arises when a USB device claims to be an ATH9K but doesn't
have the expected endpoints. (In this case there was an interrupt
endpoint where the driver expected a bulk endpoint.) The kernel
needs to be able to handle such devices without getting an internal error.
usb 1-1: BOGUS urb xfer, pipe 3 != type 1
WARNING: CPU: 3 PID: 500 at drivers/usb/core/urb.c:493usb_submit_urb+0xce2/0x1430drivers/usb/core/urb.c:493Modules linked in:CPU: 3 PID: 500 Comm: kworker/3:2 Not tainted 5.10.135-syzkaller #0
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: events request_firmware_work_func
RIP: 0010:usb_submit_urb+0xce2/0x1430drivers/usb/core/urb.c:493Call Trace:ath9k_hif_usb_alloc_rx_urbsdrivers/net/wireless/ath/ath9k/hif_usb.c:908[inline]ath9k_hif_usb_alloc_urbs+0x75e/0x1010drivers/net/wireless/ath/ath9k/hif_usb.c:1019ath9k_hif_usb_dev_initdrivers/net/wireless/ath/ath9k/hif_usb.c:1109[inline]ath9k_hif_usb_firmware_cb+0x142/0x530drivers/net/wireless/ath/ath9k/hif_usb.c:1242request_firmware_work_func+0x12e/0x240drivers/base/firmware_loader/main.c:1097process_one_work+0x9af/0x1600kernel/workqueue.c:2279worker_thread+0x61d/0x12f0kernel/workqueue.c:2425kthread+0x3b4/0x4a0kernel/kthread.c:313ret_from_fork+0x22/0x30arch/x86/entry/entry_64.S:299
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.