Skip to content

Commit 5dc92cf

Browse files
segoongregkh
authored andcommitted
usb: misc: sisusbvga: fix information leak to userland
Structure sisusb_info is copied to userland with "sisusb_reserved" field uninitialized. It leads to leaking of contents of kernel stack memory. Signed-off-by: Vasiliy Kulikov <segooon@gmail.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 28609d4 commit 5dc92cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/usb/misc/sisusbvga/sisusb.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3008,6 +3008,7 @@ sisusb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
30083008
#else
30093009
x.sisusb_conactive = 0;
30103010
#endif
3011+
memset(x.sisusb_reserved, 0, sizeof(x.sisusb_reserved));
30113012

30123013
if (copy_to_user((void __user *)arg, &x, sizeof(x)))
30133014
retval = -EFAULT;

0 commit comments

Comments
 (0)