]> git.ipfire.org Git - people/ms/linux.git/commit
USB: usbfs: don't leak kernel data in siginfo
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 13 Feb 2015 15:54:53 +0000 (10:54 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:13 +0000 (17:31 +0100)
commit17671b2fbcf11e9d101cc028335ca1a5e77e569f
treeefbca775e2b92a5c19b2a7bf1f1618a83f88cc99
parenta8e488401bd772a41726f1280cf3cce556d165ba
USB: usbfs: don't leak kernel data in siginfo

commit f0c2b68198589249afd2b1f2c4e8de8c03e19c16 upstream.

When a signal is delivered, the information in the siginfo structure
is copied to userspace.  Good security practice dicatates that the
unused fields in this structure should be initialized to 0 so that
random kernel stack data isn't exposed to the user.  This patch adds
such an initialization to the two places where usbfs raises signals.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Dave Mielke <dave@mielke.cc>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/core/devio.c