mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands
[ Upstream commit 93a2001bdf ]
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.
Cc: stable@vger.kernel.org
Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
parent
1b9dc6680d
commit
6f562d23f3
1 changed files with 5 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue