CVE-2026-80566: Input: hynitron_cstxxx - validate touch count and finger IDs
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Input: hynitron_cstxxx - validate touch count and finger IDs
The driver allocates max_touch_num input slots, which are indexed from zero through max_touch_num - 1. The current check allows a finger ID equal to max_touch_num to reach cst3xx_report_contact(). While the input core ignores out-of-range slot indices, reporting touch data without a valid slot change corrupts the touch state of the previously active slot.
The touch count is read from the controller's report and is used to index the fixed-size report buffer without first checking its range. Reject counts larger than the supported number of touch slots before checking the trailing byte or parsing touch data.
Reject finger IDs equal to or greater than max_touch_num, and return immediately when an invalid finger ID is encountered so that corrupt touch frames are discarded instead of reporting partial contact state.
The V821 Avaota F1 board configures the vendor driver with one touch slot, so finger ID 1 is already invalid on that device.
The Linux kernel CVE team has assigned CVE-2026-80566 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 66603243f5283f7f28c795f09e7c2167233df0bd and fixed in 6.6.153 with commit ec61ca4e310665816a639cb2e46cd9b3af0a9bee Issue introduced in 6.2 with commit 66603243f5283f7f28c795f09e7c2167233df0bd and fixed in 6.12.105 with commit 387829ee60de26c7c073ed4e27ecfab2b75d4c74 Issue introduced in 6.2 with commit 66603243f5283f7f28c795f09e7c2167233df0bd and fixed in 6.18.46 with commit 38e7d5c1ade04b99c70da0298ca296ee62bc99c0 Issue introduced in 6.2 with commit 66603243f5283f7f28c795f09e7c2167233df0bd and fixed in 7.1.10 with commit 51c5503554c87e4de4035468bebf186205391ce9 Issue introduced in 6.2 with commit 66603243f5283f7f28c795f09e7c2167233df0bd and fixed in 7.2 with commit 27f380ef0e1d3de3cde114e02d33f9320ce3a5a6
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80566
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/input/touchscreen/hynitron_cstxxx.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/ec61ca4e310665816a639cb2e46cd9b3af0a9bee https://git.kernel.org/stable/c/387829ee60de26c7c073ed4e27ecfab2b75d4c74 https://git.kernel.org/stable/c/38e7d5c1ade04b99c70da0298ca296ee62bc99c0 https://git.kernel.org/stable/c/51c5503554c87e4de4035468bebf186205391ce9 https://git.kernel.org/stable/c/27f380ef0e1d3de3cde114e02d33f9320ce3a5a6