diff options
author | Scott Bauer <sbauer@plzdonthack.me> | 2016-06-23 08:59:47 -0600 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-30 18:22:06 +1000 |
commit | 219a2d78a8bc79df201c45a78a5ece714c002704 (patch) | |
tree | 75528a9ac4ba5ec464ce93c9fbc2e6853834ac6e /net | |
parent | 28ea59dc1c4781c819996a65e60aa773f1da6765 (diff) | |
download | kernel_samsung_smdk4412-219a2d78a8bc79df201c45a78a5ece714c002704.zip kernel_samsung_smdk4412-219a2d78a8bc79df201c45a78a5ece714c002704.tar.gz kernel_samsung_smdk4412-219a2d78a8bc79df201c45a78a5ece714c002704.tar.bz2 |
HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands
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.
Change-Id: I10866ee01c7ba430eab2b5cc3356c9519c7f9730
Cc: stable@vger.kernel.org
Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions