diff options
| author | Andrej Shadura <[email protected]> | 2021-09-16 16:33:11 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2021-09-22 07:31:18 +0000 |
| commit | 22d65765f211cc83186fd8b87521159f354c0da9 (patch) | |
| tree | df85d4917d37ad3b890e9411d94a1b076b34db86 /scripts/mod/file2alias.c | |
| parent | HID: amd_sfh: Fix potential NULL pointer dereference (diff) | |
| download | kernel-22d65765f211cc83186fd8b87521159f354c0da9.tar.gz kernel-22d65765f211cc83186fd8b87521159f354c0da9.zip | |
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions
