summaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorLee Jones <lee@kernel.org>2026-02-27 10:09:38 +0000
committerBenjamin Tissoires <bentiss@kernel.org>2026-03-16 16:21:48 +0100
commitf7a4c78bfeb320299c1b641500fe7761eadbd101 (patch)
tree0f25b3ef4b247763e17f1b4f2fc25c044d1c5444 /include/linux/mmc
parent2b658c1c442ec1cd9eec5ead98d68662c40fe645 (diff)
HID: logitech-hidpp: Prevent use-after-free on force feedback initialisation failure
Presently, if the force feedback initialisation fails when probing the Logitech G920 Driving Force Racing Wheel for Xbox One, an error number will be returned and propagated before the userspace infrastructure (sysfs and /dev/input) has been torn down. If userspace ignores the errors and continues to use its references to these dangling entities, a UAF will promptly follow. We have 2 options; continue to return the error, but ensure that all of the infrastructure is torn down accordingly or continue to treat this condition as a warning by emitting the message but returning success. It is thought that the original author's intention was to emit the warning but keep the device functional, less the force feedback feature, so let's go with that. Signed-off-by: Lee Jones <lee@kernel.org> Reviewed-by: Günther Noack <gnoack@google.com> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'include/linux/mmc')
0 files changed, 0 insertions, 0 deletions