summaryrefslogtreecommitdiff
path: root/drivers/hid/amd-sfh-hid
diff options
context:
space:
mode:
authorAndrej Shadura <andrew.shadura@collabora.co.uk>2021-09-16 17:33:11 +0100
committerJiri Kosina <jkosina@suse.cz>2021-09-22 09:31:18 +0200
commit22d65765f211cc83186fd8b87521159f354c0da9 (patch)
treedf85d4917d37ad3b890e9411d94a1b076b34db86 /drivers/hid/amd-sfh-hid
parentd46ef750ed58cbeeba2d9a55c99231c30a172764 (diff)
HID: u2fzero: ignore incomplete packets without data
Since the actual_length calculation is performed unsigned, packets shorter than 7 bytes (e.g. packets without data or otherwise truncated) or non-received packets ("zero" bytes) can cause buffer overflow. Link: https://bugzilla.kernel.org/show_bug.cgi?id=214437 Fixes: 42337b9d4d958("HID: add driver for U2F Zero built-in LED and RNG") Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/amd-sfh-hid')
0 files changed, 0 insertions, 0 deletions