can: peak_usb: pcan_usb_pro: Fix info-leaks to USB devices
authorTomas Bortoli <tomasbortoli@gmail.com>
Wed, 31 Jul 2019 14:54:47 +0000 (10:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:12:51 +0000 (10:12 +0200)
commitcab569a44a524709d95bbd88700860ac45e5d5cf
treec273c98a7de3fe84d88c7e0217b56d093dbbbba5
parentd4d904e4e258e1e5c794af3e702d6f6ecc8fd56d
can: peak_usb: pcan_usb_pro: Fix info-leaks to USB devices

commit ead16e53c2f0ed946d82d4037c630e2f60f4ab69 upstream.

Uninitialized Kernel memory can leak to USB devices.

Fix by using kzalloc() instead of kmalloc() on the affected buffers.

Signed-off-by: Tomas Bortoli <tomasbortoli@gmail.com>
Reported-by: syzbot+d6a5a1a3657b596ef132@syzkaller.appspotmail.com
Fixes: f14e22435a27 ("net: can: peak_usb: Do not do dma on the stack")
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/usb/peak_usb/pcan_usb_pro.c