1
0
Fork 0
alistair23-linux/drivers/usb/mtu3
Dan Carpenter 57e22590c4 usb: mtu3: fix memory corruption in mtu3_debugfs_regset()
commit 3f6f6343a2 upstream.

This code is using the wrong sizeof() so it does not allocate enough
memory.  It allocates 32 bytes but 72 are required.  That will lead to
memory corruption.

Fixes: ae07809255 ("usb: mtu3: add debugfs interface files")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X8ikqc4Mo2/0G72j@mwanda
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-30 11:50:58 +01:00
..
Kconfig usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
Makefile usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3.h usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
mtu3_core.c usb: mtu3: clear dual mode of u3port when disable device 2020-08-19 08:16:02 +02:00
mtu3_debug.h usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_debugfs.c usb: mtu3: fix memory corruption in mtu3_debugfs_regset() 2020-12-30 11:50:58 +01:00
mtu3_dr.c usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
mtu3_dr.h usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
mtu3_gadget.c usb: mtu3: fix panic in mtu3_gadget_stop() 2020-11-10 12:37:33 +01:00
mtu3_gadget_ep0.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_host.c usb: mtu3: fix semicolon.cocci warnings 2018-01-16 10:01:01 +01:00
mtu3_hw_regs.h usb: mtu3: add debugfs interface files 2019-03-26 16:40:14 +09:00
mtu3_plat.c usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
mtu3_qmu.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_qmu.h usb: mtu3: supports new QMU format 2019-03-26 16:40:13 +09:00
mtu3_trace.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_trace.h usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00