diff options
author | Tomas Bortoli <tomasbortoli@gmail.com> | 2019-07-31 17:54:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-16 11:12:51 +0300 |
commit | 9ce1b3eb5489416338b2fb2b40f30f0d425700b4 (patch) | |
tree | 8597665cf012cb957c37c061209d760c4a82bb83 /drivers/hwmon/nct7802.c | |
parent | cab569a44a524709d95bbd88700860ac45e5d5cf (diff) | |
download | linux-9ce1b3eb5489416338b2fb2b40f30f0d425700b4.tar.xz |
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>
Diffstat (limited to 'drivers/hwmon/nct7802.c')
0 files changed, 0 insertions, 0 deletions