]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices
authorTomas Bortoli <tomasbortoli@gmail.com>
Wed, 31 Jul 2019 14:54:47 +0000 (10:54 -0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 2 Aug 2019 11:57:48 +0000 (13:57 +0200)
commit59617400be16b0ffc154c9c5d411849580a7ffa6
tree95d589f04a19646628d41b21a5bb3ef537ed82bb
parent3946131216baf50ec84ad75cf1916895547fea05
can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices

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+513e4d0985298538bf9b@syzkaller.appspotmail.com
Fixes: 3974c183698c ("can: peak_usb: add support for PEAK new CANFD USB adapters")
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_fd.c