Alan Stern
a05ac5d00e
net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb
commit 5e1627cb43ddf1b24b92eb26f8d958a3f5676ccb upstream.
The syzbot fuzzer identified a problem in the usbnet driver:
usb 1-1: BOGUS urb xfer, pipe 3 != type 1
WARNING: CPU: 0 PID: 754 at drivers/usb/core/urb.c:504 usb_submit_urb+0xed6/0x1880 drivers/usb/core/urb.c:504
Modules linked in:
CPU: 0 PID: 754 Comm: kworker/0:2 Not tainted 6.4.0-rc7-syzkaller-00014-g692b7dc87ca6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: mld mld_ifc_work
RIP: 0010:usb_submit_urb+0xed6/0x1880 drivers/usb/core/urb.c:504
Code: 7c 24 18 e8 2c b4 5b fb 48 8b 7c 24 18 e8 42 07 f0 fe 41 89 d8 44 89 e1 4c 89 ea 48 89 c6 48 c7 c7 a0 c9 fc 8a e8 5a 6f 23 fb <0f> 0b e9 58 f8 ff ff e8 fe b3 5b fb 48 81 c5 c0 05 00 00 e9 84 f7
RSP: 0018:ffffc9000463f568 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88801eb28000 RSI: ffffffff814c03b7 RDI: 0000000000000001
RBP: ffff8881443b7190 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000003
R13: ffff88802a77cb18 R14: 0000000000000003 R15: ffff888018262500
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556a99c15a18 CR3: 0000000028c71000 CR4: 0000000000350ef0
Call Trace:
<TASK>
usbnet_start_xmit+0xfe5/0x2190 drivers/net/usb/usbnet.c:1453
__netdev_start_xmit include/linux/netdevice.h:4918 [inline]
netdev_start_xmit include/linux/netdevice.h:4932 [inline]
xmit_one net/core/dev.c:3578 [inline]
dev_hard_start_xmit+0x187/0x700 net/core/dev.c:3594
...
This bug is caused by the fact that usbnet trusts the bulk endpoint
addresses its probe routine receives in the driver_info structure, and
it does not check to see that these endpoints actually exist and have
the expected type and directions.
The fix is simply to add such a check.
Reported-and-tested-by: [email protected]
Closes: https://lore.kernel.org/linux-usb/[email protected]/
Signed-off-by: Alan Stern <[email protected]>
CC: Oliver Neukum <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
|
2023-08-11 11:53:59 +02:00 |
| .. |
|
accessibility
|
|
|
|
acpi
|
ACPI: processor: perflib: Avoid updating frequency QoS unnecessarily
|
2023-08-11 11:53:53 +02:00 |
|
amba
|
|
|
|
android
|
binder: fix UAF caused by faulty buffer cleanup
|
2023-06-05 08:17:33 +02:00 |
|
ata
|
ata: pata_ns87415: mark ns87560_tf_read static
|
2023-08-11 11:53:49 +02:00 |
|
atm
|
treewide: Remove uninitialized_var() usage
|
2023-06-09 10:29:01 +02:00 |
|
auxdisplay
|
|
|
|
base
|
driver core: add device probe log helper
|
2023-08-11 11:53:57 +02:00 |
|
bcma
|
|
|
|
block
|
loop: Select I/O scheduler 'none' from inside add_disk()
|
2023-08-11 11:53:54 +02:00 |
|
bluetooth
|
Revert "Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work"
|
2023-05-17 11:35:45 +02:00 |
|
bus
|
bus: imx-weim: fix branch condition evaluates to a garbage value
|
2023-04-05 11:16:42 +02:00 |
|
cdrom
|
|
|
|
char
|
tpm_tis: Explicitly check for error code
|
2023-08-11 11:53:52 +02:00 |
|
clk
|
clk: keystone: sci-clk: check return value of kasprintf()
|
2023-07-27 08:37:15 +02:00 |
|
clocksource
|
clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe
|
2023-07-27 08:37:05 +02:00 |
|
connector
|
|
|
|
counter
|
counter: 104-quad-8: Fix race condition between FLAG and CNTR reads
|
2023-05-17 11:35:31 +02:00 |
|
cpufreq
|
cpufreq: intel_pstate: Drop ACPI _PSS states table patching
|
2023-08-11 11:53:53 +02:00 |
|
cpuidle
|
cpuidle: dt: Return the correct numbers of parsed idle states
|
2023-01-18 11:40:53 +01:00 |
|
crypto
|
crypto: marvell/cesa - Fix type mismatch warning
|
2023-07-27 08:37:18 +02:00 |
|
dax
|
|
|
|
dca
|
|
|
|
devfreq
|
PM/devfreq: governor: Add a private governor_data for governor
|
2023-01-18 11:41:52 +01:00 |
|
dio
|
drivers: dio: fix possible memory leak in dio_init()
|
2023-01-18 11:41:21 +01:00 |
|
dma
|
dmaengine: pl330: rename _start to prevent build error
|
2023-06-09 10:28:52 +02:00 |
|
dma-buf
|
|
|
|
edac
|
EDAC/skx: Fix overflows on the DRAM row address mapping arrays
|
2023-05-17 11:35:35 +02:00 |
|
eisa
|
|
|
|
extcon
|
extcon: Fix kernel doc of property capability fields to avoid warnings
|
2023-07-27 08:37:20 +02:00 |
|
firewire
|
treewide: Remove uninitialized_var() usage
|
2023-06-09 10:29:01 +02:00 |
|
firmware
|
firmware: stratix10-svc: Fix a potential resource leak in svc_create_memory_pool()
|
2023-07-27 08:37:37 +02:00 |
|
fpga
|
fpga: bridge: fix kernel-doc parameter description
|
2023-05-17 11:35:46 +02:00 |
|
fsi
|
WRITE is "data source", not destination...
|
2023-02-22 12:50:23 +01:00 |
|
gnss
|
|
|
|
gpio
|
gpio: tps68470: Make tps68470_gpio_output() always set the initial value
|
2023-08-11 11:53:44 +02:00 |
|
gpu
|
drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
|
2023-08-11 11:53:49 +02:00 |
|
greybus
|
|
|
|
hid
|
HID: wacom: Use ktime_t rather than int when dealing with timestamps
|
2023-07-27 08:37:03 +02:00 |
|
hsi
|
HSI: omap_ssi_core: Fix error handling in ssi_init()
|
2023-01-18 11:41:28 +01:00 |
|
hv
|
Drivers: hv: vmbus: Fix vmbus_wait_for_unload() to scan present CPUs
|
2023-06-28 10:18:36 +02:00 |
|
hwmon
|
hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled
|
2023-08-11 11:53:52 +02:00 |
|
hwspinlock
|
|
|
|
hwtracing
|
coresight: Fix signedness bug in tmc_etr_buf_insert_barrier_packet()
|
2023-05-30 12:44:10 +01:00 |
|
i2c
|
i2c: xiic: Don't try to handle more interrupt events after error
|
2023-07-27 08:37:24 +02:00 |
|
i3c
|
|
|
|
ide
|
treewide: Remove uninitialized_var() usage
|
2023-06-09 10:29:01 +02:00 |
|
idle
|
|
|
|
iio
|
meson saradc: fix clock divider mask length
|
2023-07-27 08:37:38 +02:00 |
|
infiniband
|
RDMA/mlx4: Make check for invalid flags stricter
|
2023-08-11 11:53:48 +02:00 |
|
input
|
Input: adxl34x - do not hardcode interrupt trigger type
|
2023-07-27 08:37:13 +02:00 |
|
interconnect
|
interconnect: fix mem leak when freeing nodes
|
2023-03-22 13:28:08 +01:00 |
|
iommu
|
iommu/amd: Don't block updates to GATag if guest mode is on
|
2023-06-09 10:28:52 +02:00 |
|
ipack
|
|
|
|
irqchip
|
irq-bcm6345-l1: Do not assume a fixed block to cpu mapping
|
2023-08-11 11:53:52 +02:00 |
|
isdn
|
mISDN: hfcpci: Fix potential deadlock on &hc->lock
|
2023-08-11 11:53:55 +02:00 |
|
leds
|
leds: TI_LMU_COMMON: select REGMAP instead of depending on it
|
2023-05-17 11:35:53 +02:00 |
|
lightnvm
|
|
|
|
macintosh
|
macintosh: via-pmu-led: requires ATA to be set
|
2023-05-17 11:35:50 +02:00 |
|
mailbox
|
mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0
|
2023-07-27 08:37:23 +02:00 |
|
mcb
|
mcb-pci: Reallocate memory region to avoid memory overlapping
|
2023-05-30 12:44:04 +01:00 |
|
md
|
dm cache policy smq: ensure IO doesn't prevent cleaner policy progress
|
2023-08-11 11:53:53 +02:00 |
|
media
|
media: usb: siano: Fix warning due to null work_func_t function pointer
|
2023-07-27 08:37:20 +02:00 |
|
memory
|
memory: brcmstb_dpfe: fix testing array offset after use
|
2023-07-27 08:37:14 +02:00 |
|
memstick
|
memstick r592: make memstick_debug_get_tpc_name() static
|
2023-07-27 08:37:10 +02:00 |
|
message
|
scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition
|
2023-05-30 12:44:03 +01:00 |
|
mfd
|
mfd: stmpe: Only disable the regulators if they are enabled
|
2023-07-27 08:37:22 +02:00 |
|
misc
|
misc: pci_endpoint_test: Re-init completion for every test
|
2023-07-27 08:37:37 +02:00 |
|
mmc
|
mmc: sdhci: fix DMA configure compatibility issue when 64bit DMA mode is used.
|
2023-07-27 08:37:25 +02:00 |
|
mtd
|
mtd: rawnand: meson: fix OOB available bytes for ECC
|
2023-08-11 11:53:58 +02:00 |
|
mux
|
|
|
|
net
|
net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb
|
2023-08-11 11:53:59 +02:00 |
|
nfc
|
nfcsim.c: Fix error checking for debugfs_create_dir
|
2023-06-28 10:18:41 +02:00 |
|
ntb
|
NTB: ntb_tool: Add check for devm_kcalloc
|
2023-07-27 08:37:32 +02:00 |
|
nubus
|
|
|
|
nvdimm
|
|
|
|
nvme
|
nvme-fcloop: fix "inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage"
|
2023-05-17 11:35:43 +02:00 |
|
nvmem
|
nvmem: core: fix cell removal on error
|
2023-02-22 12:50:28 +01:00 |
|
of
|
of: Fix modalias string generation
|
2023-05-17 11:35:47 +02:00 |
|
opp
|
OPP: fix error checking in opp_migrate_dentry()
|
2023-03-11 16:43:41 +01:00 |
|
oprofile
|
|
|
|
parisc
|
parisc: led: Fix potential null-ptr-deref in start_task()
|
2023-01-18 11:41:50 +01:00 |
|
parport
|
|
|
|
pci
|
PCI/ASPM: Avoid link retraining race
|
2023-08-11 11:53:45 +02:00 |
|
pcmcia
|
|
|
|
perf
|
perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init()
|
2023-01-18 11:40:50 +01:00 |
|
phy
|
phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe()
|
2023-08-11 11:53:47 +02:00 |
|
pinctrl
|
pinctrl: amd: Use amd_pinconf_set() for all config options
|
2023-07-27 08:37:43 +02:00 |
|
platform
|
platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100
|
2023-08-11 11:53:48 +02:00 |
|
pnp
|
PNP: fix name memory leak in pnp_alloc_dev()
|
2023-01-18 11:40:54 +01:00 |
|
power
|
power: supply: Fix logic checking if system is running from battery
|
2023-06-21 15:44:09 +02:00 |
|
powercap
|
powercap: RAPL: Fix CONFIG_IOSF_MBI dependency
|
2023-07-27 08:37:06 +02:00 |
|
pps
|
|
|
|
ps3
|
|
|
|
ptp
|
ptp_qoriq: fix memory leak in probe()
|
2023-04-05 11:16:43 +02:00 |
|
pwm
|
pwm: meson: fix handling of period/duty if greater than UINT_MAX
|
2023-08-11 11:53:46 +02:00 |
|
rapidio
|
rapidio: devices: fix missing put_device in mport_cdev_open
|
2023-01-18 11:40:59 +01:00 |
|
ras
|
|
|
|
regulator
|
regulator: core: Streamline debugfs operations
|
2023-07-27 08:37:07 +02:00 |
|
remoteproc
|
remoteproc: st: Call of_node_put() on iteration error
|
2023-05-17 11:36:01 +02:00 |
|
reset
|
|
|
|
rpmsg
|
rpmsg: glink: Avoid infinite loop on intent for missing channel
|
2023-03-11 16:43:53 +01:00 |
|
rtc
|
rtc: st-lpc: Release some resources in st_rtc_probe() in case of error
|
2023-07-27 08:37:22 +02:00 |
|
s390
|
scsi: zfcp: Defer fc_rport blocking until after ADISC response
|
2023-08-11 11:53:58 +02:00 |
|
sbus
|
|
|
|
scsi
|
scsi: qla2xxx: Array index may go out of bound
|
2023-08-11 11:53:46 +02:00 |
|
sfi
|
|
|
|
sh
|
|
|
|
siox
|
|
|
|
slimbus
|
slimbus: stream: correct presence rate frequencies
|
2022-11-25 17:42:17 +01:00 |
|
soc
|
soc/fsl/qe: fix usb.c build errors
|
2023-07-27 08:37:14 +02:00 |
|
soundwire
|
|
|
|
spi
|
spi: bcm63xx: fix max prepend length
|
2023-07-27 08:37:43 +02:00 |
|
spmi
|
spmi: Add a check for remove callback when removing a SPMI driver
|
2023-05-17 11:35:49 +02:00 |
|
ssb
|
treewide: Remove uninitialized_var() usage
|
2023-06-09 10:29:01 +02:00 |
|
staging
|
staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()
|
2023-08-11 11:53:52 +02:00 |
|
target
|
scsi: target: iscsi: Prevent login threads from racing between each other
|
2023-06-28 10:18:40 +02:00 |
|
tc
|
|
|
|
tee
|
tee: optee: fix possible memory leak in optee_register_device()
|
2022-12-08 11:22:57 +01:00 |
|
thermal
|
thermal: intel: BXT_PMIC: select REGMAP instead of depending on it
|
2023-03-11 16:44:13 +01:00 |
|
thunderbolt
|
thunderbolt: Use const qualifier for ring_interrupt_index
|
2023-04-05 11:16:39 +02:00 |
|
tty
|
serial: sifive: Fix sifive_serial_console_setup() section
|
2023-08-11 11:53:50 +02:00 |
|
uio
|
uio: uio_dmem_genirq: Fix deadlock between irq config and handling
|
2023-01-18 11:41:22 +01:00 |
|
usb
|
Revert "usb: xhci: tegra: Fix error check"
|
2023-08-11 11:53:51 +02:00 |
|
vfio
|
vfio: platform: Do not pass return buffer to ACPI _RST method
|
2023-01-18 11:41:22 +01:00 |
|
vhost
|
treewide: Remove uninitialized_var() usage
|
2023-06-09 10:29:01 +02:00 |
|
video
|
fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe
|
2023-07-27 08:37:44 +02:00 |
|
virt
|
|
|
|
virtio
|
treewide: Remove uninitialized_var() usage
|
2023-06-09 10:29:01 +02:00 |
|
visorbus
|
|
|
|
vlynq
|
|
|
|
vme
|
vme: Fix error not catched in fake_init()
|
2023-01-18 11:41:26 +01:00 |
|
w1
|
w1: fix loop in w1_fini()
|
2023-07-27 08:37:19 +02:00 |
|
watchdog
|
watchdog: menz069_wdt: fix watchdog initialisation
|
2023-06-09 10:28:55 +02:00 |
|
xen
|
xen/pvcalls-back: fix double frees with pvcalls_new_active_socket()
|
2023-05-30 12:44:10 +01:00 |
|
zorro
|
|
|
|
Kconfig
|
|
|
|
Makefile
|
|
|