]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: logitech-hidpp: Check bounds when deleting force-feedback effects
authorGünther Noack <gnoack@google.com>
Tue, 31 Mar 2026 07:40:51 +0000 (09:40 +0200)
committerJiri Kosina <jkosina@suse.com>
Thu, 9 Apr 2026 15:27:37 +0000 (17:27 +0200)
commite606d8329be1e19b7eb3e0c6c72a73cbbb25ae3d
treeff413d2a13dbcb9139336aeaeadd1bf12dc3dc56
parent45065a5095c7773fb98c35d60c20c3b513540597
HID: logitech-hidpp: Check bounds when deleting force-feedback effects

Without this bounds check, this might otherwise overwrite index -1.

Triggering this condition requires action both from the USB device and from
userspace, which reduces the scenarios in which it can be exploited.

Cc: Lee Jones <lee@kernel.org>
Signed-off-by: Günther Noack <gnoack@google.com>
Reviewed-by: Lee Jones <lee@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-logitech-hidpp.c