linux/drivers/net/can
Johan Hovold a7be2debb7 can: peak_usb: fix slab info leak
commit f7a1337f0d upstream.

Fix a small slab info leak due to a failure to clear the command buffer
at allocation.

The first 16 bytes of the command buffer are always sent to the device
in pcan_usb_send_cmd() even though only the first two may have been
initialised in case no argument payload is provided (e.g. when waiting
for a response).

Fixes: bb4785551f ("can: usb: PEAK-System Technik USB adapters driver core")
Cc: stable <stable@vger.kernel.org>     # 3.4
Reported-by: syzbot+863724e7128e14b26732@syzkaller.appspotmail.com
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-12 19:20:45 +01:00
..
c_can can: c_can: c_can_poll(): only read status register after status IRQ 2019-11-12 19:20:44 +01:00
cc770 can: cc770: fix spelling mistake: "comptibility" -> "compatibility" 2018-07-27 10:40:16 +02:00
ifi_canfd can: ifi: Repair the error handling 2018-03-12 09:55:12 +01:00
m_can can: m_can: implement errata "Needless activation of MRAF irq" 2019-07-14 08:11:07 +02:00
mscan can: mpc5xxx_can: check of_iomap return before use 2018-07-23 14:34:45 +02:00
peak_canfd can: peak_canfd: rearrange the way resources are released 2018-07-27 10:40:18 +02:00
rcar can: rcar_canfd: fix possible IRQ storm on high load 2019-08-16 10:12:43 +02:00
sja1000 can: sja1000: force the string buffer NULL-terminated 2019-08-29 08:28:37 +02:00
softing drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
spi can: mcp251x: mcp251x_hw_reset(): allow more time after a reset 2019-10-11 18:20:51 +02:00
usb can: peak_usb: fix slab info leak 2019-11-12 19:20:45 +01:00
at91_can.c drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
dev.c can: dev: add missing of_node_put() after calling of_get_child_by_name() 2019-11-12 19:20:45 +01:00
flexcan.c can: flexcan: disable completely the ECC mechanism 2019-11-12 19:20:43 +01:00
grcan.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
janz-ican3.c can: janz-ican3: fix ican3_xmit()'s return type 2018-07-27 10:40:16 +02:00
Kconfig can: mark led trigger as broken 2018-06-28 21:34:45 +02:00
led.c
Makefile can: remove bfin_can driver 2018-03-26 15:57:02 +02:00
pch_can.c
rx-offload.c can: rx-offload: can_rx_offload_queue_sorted(): fix error handling, avoid skb mem leak 2019-11-12 19:20:44 +01:00
slcan.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
sun4i_can.c can: sun4i: fix sun4ican_start_xmit()'s return type 2018-07-27 10:40:16 +02:00
ti_hecc.c
vcan.c drivers/net: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
vxcan.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-01-09 10:37:00 -05:00
xilinx_can.c can: xilinx_can: use correct bittiming_const for CAN FD core 2019-06-25 11:36:00 +08:00