diff options
author | Scott Bauer <sbauer@plzdonthack.me> | 2016-06-23 08:59:47 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-27 09:55:50 -0700 |
commit | 22e658d19a1a64512d49de2632ad2124e6f9e429 (patch) | |
tree | 85e87f091108fce73a93cc50791d9f24833bf363 /kernel/trace/trace_printk.c | |
parent | 48650aa9bba3a8c0d917b172753330c2f7f8a99a (diff) | |
download | lwn-22e658d19a1a64512d49de2632ad2124e6f9e429.tar.gz lwn-22e658d19a1a64512d49de2632ad2124e6f9e429.zip |
HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands
commit 93a2001bdfd5376c3dc2158653034c20392d15c5 upstream.
This patch validates the num_values parameter from userland during the
HIDIOCGUSAGES and HIDIOCSUSAGES commands. Previously, if the report id was set
to HID_REPORT_ID_UNKNOWN, we would fail to validate the num_values parameter
leading to a heap overflow.
Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/trace/trace_printk.c')
0 files changed, 0 insertions, 0 deletions