Skip to content

Commit eca67aa

Browse files
segoongregkh
authored andcommitted
usb: misc: iowarrior: fix information leak to userland
Structure iowarrior_info is copied to userland with padding byted between "serial" and "revision" fields uninitialized. It leads to leaking of contents of kernel stack memory. Signed-off-by: Vasiliy Kulikov <segooon@gmail.com> Cc: stable <stable@kernel.org> Acked-by: Kees Cook <kees.cook@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 5dc92cf commit eca67aa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/usb/misc/iowarrior.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ static long iowarrior_ioctl(struct file *file, unsigned int cmd,
553553
/* needed for power consumption */
554554
struct usb_config_descriptor *cfg_descriptor = &dev->udev->actconfig->desc;
555555

556+
memset(&info, 0, sizeof(info));
556557
/* directly from the descriptor */
557558
info.vendor = le16_to_cpu(dev->udev->descriptor.idVendor);
558559
info.product = dev->product_id;

0 commit comments

Comments
 (0)