summaryrefslogtreecommitdiff
path: root/tools/lib/python/jobserver.py
diff options
context:
space:
mode:
authorLee Jones <lee@kernel.org>2026-04-16 16:16:54 +0300
committerJiri Kosina <jkosina@suse.com>2026-05-12 18:49:18 +0300
commitd93ba918a185aca2594da63e92fdc5495b559c0f (patch)
treebb308586c17be917320e118dfb75be562a7e1917 /tools/lib/python/jobserver.py
parentf097d246677b03db814c5862f368cea341b76a00 (diff)
downloadlinux-d93ba918a185aca2594da63e92fdc5495b559c0f.tar.xz
HID: magicmouse: Prevent out-of-bounds (OOB) read during DOUBLE_REPORT_ID
It is currently possible for a malicious or misconfigured USB device to cause an out-of-bounds (OOB) read when submitting reports using DOUBLE_REPORT_ID by specifying a large report length and providing a smaller one. Let's prevent that by comparing the specified report length with the actual size of the data read in from userspace. If the actual data length ends up being smaller than specified, we'll politely warn the user and prevent any further processing. Signed-off-by: Lee Jones <lee@kernel.org> Reviewed-by: Günther Noack <gnoack@google.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/lib/python/jobserver.py')
0 files changed, 0 insertions, 0 deletions