linux/drivers/net/can/usb
Pengpeng Hou 02925f5137 can: ems_usb: validate CPC message lengths
ems_usb_read_bulk_callback() walks CPC messages packed in one USB
receive buffer.

Check that each declared message fits in the URB payload. Also require the
type-specific payload to cover the fields used by the CAN, state, error and
overrun handlers.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260706092752.79600-1-pengpeng@iscas.ac.cn
Fixes: 702171adee ("ems_usb: Added support for EMS CPC-USB/ARM7 CAN/USB interface")
Cc: stable@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2026-07-29 12:00:18 +02:00
..
etas_es58x can: etas_es58x: es58x_read_bulk_callback(): fix RX buffer leak on URB resubmit failure 2026-07-29 12:00:00 +02:00
kvaser_usb can: kvaser_usb_leaf: kvaser_usb_leaf_wait_cmd(): validate received command extents 2026-07-29 12:00:00 +02:00
peak_usb can: peak_usb: validate uCAN receive record lengths 2026-07-29 11:59:01 +02:00
ems_usb.c can: ems_usb: validate CPC message lengths 2026-07-29 12:00:18 +02:00
esd_usb.c can: esd_usb: kill anchored URBs before freeing netdevs 2026-07-14 10:59:53 +02:00
f81604.c can: usb: f81604: correctly anchor the urb in the read bulk callback 2026-03-02 11:04:15 +01:00
gs_usb.c can: gs_usb: gs_usb_receive_bulk_callback(): resubmit URB on skb allocation failure 2026-07-29 12:00:00 +02:00
Kconfig can: Add Nuvoton NCT6694 CANFD support 2025-09-16 14:41:57 +01:00
Makefile can: Add Nuvoton NCT6694 CANFD support 2025-09-16 14:41:57 +01:00
mcba_usb.c can: mcba_usb: mcba_usb_read_bulk_callback(): fix URB memory leak 2026-01-16 20:40:46 +01:00
nct6694_canfd.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ucan.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-04-14 12:04:00 -07:00
usb_8dev.c can: usb_8dev: usb_8dev_read_bulk_callback(): fix URB memory leak 2026-01-16 20:40:52 +01:00