In the Linux kernel, the following vulnerability has been resolved: HID: mcp2221: validate response report length MCP2221 responses are 64-byte reports, but mcp2221_raw_event() currently accepts any report of at least four bytes. Several response handlers read far beyond that minimum. In particular, the I2C status response reads offset 20 and copies ADC samples starting at offset 50. Other GPIO, SRAM, and flash response handlers also access fixed offsets beyond byte three. The HID core invokes raw_event callbacks before validating the report length, so a truncated response can cause an out-of-bounds read. Require a complete protocol report before dispatching any response handler. Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of raw_event length validation to hid-asus.
https://git.kernel.org/stable/c/ee55408b95bdc28f1bd1eb4591185838037a1f98
https://git.kernel.org/stable/c/be58f1ccf23a2692c06386be8f0dbb51f454518e
https://git.kernel.org/stable/c/ba32a45cfb63563a10d4bc6309258cdbc0d57914
https://git.kernel.org/stable/c/b090515bc812140d2c1316e92d9dc7de201d8c13
https://git.kernel.org/stable/c/7b281fbf70b46d4cdb088a84e332c611aead8577
https://git.kernel.org/stable/c/54a9b3a72c669c841e4e6499b487e9ceec607f1b
https://git.kernel.org/stable/c/394a7a04c0915f86cde7c19de47f65ec3d3b6e54
https://git.kernel.org/stable/c/1ae40774d386b7a51e4799200106429a7e14e8ec