diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-11-26 12:58:18 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-04 19:05:54 (GMT) |
commit | 368882d5acaad71ee5811a9e12d29688a1a490b6 (patch) | |
tree | 23d1320fcf187870348823995ce4f1d80fe29308 /drivers/iio | |
parent | 52df633c9c9c92264e04e1ead9290e5192a8768e (diff) | |
download | linux-fsl-qoriq-368882d5acaad71ee5811a9e12d29688a1a490b6.tar.xz |
HID: uhid: fix leak for 64/32 UHID_CREATE
commit 80897aa787ecd58eabb29deab7cbec9249c9b7e6 upstream.
UHID allows short writes so user-space can omit unused fields. We
automatically set them to 0 in the kernel. However, the 64/32 bit
compat-handler didn't do that in the UHID_CREATE fallback. This will
reveal random kernel heap data (of random size, even) to user-space.
Fixes: befde0226a59 ('HID: uhid: make creating devices work on 64/32 systems')
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions