projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80ebd07
)
usb: misc: sisusbvga: fix information leak to userland
author
Vasiliy Kulikov
<segooon@gmail.com>
Sat, 6 Nov 2010 14:41:35 +0000
(17:41 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 9 Dec 2010 21:33:04 +0000
(13:33 -0800)
commit
5dc92cf1d0b4b0debbd2e333b83f9746c103533d
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/sisusbvga/sisusb.c
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/sisusbvga/sisusb.c
b/drivers/usb/misc/sisusbvga/sisusb.c
index 70d00e99a4b40f4c4fde10c0472c087a897e3ed6..dd573abd2d1edf9b32b0a97aa9def3d1abd9d967 100644
(file)
--- a/
drivers/usb/misc/sisusbvga/sisusb.c
+++ b/
drivers/usb/misc/sisusbvga/sisusb.c
@@
-3008,6
+3008,7
@@
sisusb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
#else
x.sisusb_conactive = 0;
#endif
+ memset(x.sisusb_reserved, 0, sizeof(x.sisusb_reserved));
if (copy_to_user((void __user *)arg, &x, sizeof(x)))
retval = -EFAULT;