Revision 22d65765f211cc83186fd8b87521159f354c0da9 authored by Andrej Shadura on 16 September 2021, 16:33:11 UTC, committed by Jiri Kosina on 22 September 2021, 07:31:18 UTC
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>
1 parent d46ef75
History
File Mode Size
Kconfig -rw-r--r-- 350 bytes
Makefile -rw-r--r-- 232 bytes
drv_fcoe_fw_funcs.c -rw-r--r-- 6.5 KB
drv_fcoe_fw_funcs.h -rw-r--r-- 2.9 KB
drv_scsi_fw_funcs.c -rw-r--r-- 1.4 KB
drv_scsi_fw_funcs.h -rw-r--r-- 2.2 KB
qedf.h -rw-r--r-- 17.2 KB
qedf_attr.c -rw-r--r-- 4.2 KB
qedf_dbg.c -rw-r--r-- 3.3 KB
qedf_dbg.h -rw-r--r-- 4.7 KB
qedf_debugfs.c -rw-r--r-- 12.4 KB
qedf_els.c -rw-r--r-- 27.7 KB
qedf_fip.c -rw-r--r-- 8.4 KB
qedf_hsi.h -rw-r--r-- 10.4 KB
qedf_io.c -rw-r--r-- 72.2 KB
qedf_main.c -rw-r--r-- 111.1 KB
qedf_version.h -rw-r--r-- 286 bytes

back to top