]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
HID: debug: check length before copy_to_user()
authorDaniel Rosenberg <drosen@google.com>
Mon, 2 Jul 2018 23:59:37 +0000 (16:59 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 3 Jul 2018 09:54:40 +0000 (11:54 +0200)
commit717adfdaf14704fd3ec7fa2c04520c0723247eac
tree909cbc9aaa97298c6110292cfc06a883174fc611
parent8f732850df1b2b4d8d719f7e606dfb3050e7ea11
HID: debug: check length before copy_to_user()

If our length is greater than the size of the buffer, we
overflow the buffer

Cc: stable@vger.kernel.org
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-debug.c