linux/drivers/hid/intel-thc-hid/intel-quicki2c
Even Xu 5e5c3b9db1 HID: Intel-thc-hid: Intel-quicki2c: Fix buffer overflow
The input and output buffers are used to store complete HID-over-I2C
packets, including their protocol headers. However, their sizes are
currently calculated from the payload length only.

Allocate enough space for both the payload and the packet header to
prevent a buffer overflow when the payload reaches its maximum size.

Signed-off-by: Even Xu <even.xu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
2026-09-23 18:48:30 +02:00
..
pci-quicki2c.c HID: Intel-thc-hid: Intel-quicki2c: Fix buffer overflow 2026-09-23 18:48:30 +02:00
quicki2c-dev.h HID: Intel-thc-hid: Intel-quicki2c: Refine recover callback 2026-08-03 20:53:29 +02:00
quicki2c-hid.c HID: intel-thc-hid: Set HID_PHYS with PCI BDF 2026-03-16 11:25:07 +01:00
quicki2c-hid.h
quicki2c-protocol.c HID: Intel-thc-hid: Intel-quicki2c: Add output report support 2026-01-07 22:03:47 +01:00
quicki2c-protocol.h HID: Intel-thc-hid: Intel-quicki2c: Add output report support 2026-01-07 22:03:47 +01:00