]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:52:52 +0000 (10:52 +0200)
commit67112944e756484c5d62529597a0181f846340d0
tree3c3fb849790337c6f1069b18452dd056fa91471a
parentabea9fa28b64d0a875cc3659002dc87b64836265
can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices

commit 30a8beeb3042f49d0537b7050fd21b490166a3d9 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+513e4d0985298538bf9b@syzkaller.appspotmail.com
Fixes: 0a25e1f4f185 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/usb/peak_usb/pcan_usb_fd.c