CVE-2026-64274

In the Linux kernel, the following vulnerability has been resolved: Input: goodix - clamp the device-reported contact count goodix_ts_read_input_report() copies the number of touch points reported by the device into an on-stack buffer u8 point_data[2 + GOODIX_MAX_CONTACT_SIZE * GOODIX_MAX_CONTACTS]; which is sized for at most GOODIX_MAX_CONTACTS (10) contacts. The only runtime check bounds the per-interrupt count against ts->max_touch_num, but that value is taken verbatim from a 4-bit field of the device configuration block and is never clamped: ts->max_touch_num = ts->config[MAX_CONTACTS_LOC] & 0x0f; The nibble can be 0..15, so a malfunctioning, malicious or counterfeit controller (or an attacker tampering with the I2C bus) can advertise up to 15 contacts. goodix_ts_read_input_report() then accepts a touch_num of up to 15 and the second goodix_i2c_read() writes ts->contact_size * (touch_num - 1) bytes past the one-contact header into point_data - up to 30 bytes (45 with the 9-byte report format) beyond the 92-byte buffer: a stack out-of-bounds write. Clamp max_touch_num to GOODIX_MAX_CONTACTS, the number of contacts point_data[] is sized for, when reading it from the configuration.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

24 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Input: goodix - limitar el recuento de contactos informado por el dispositivo goodix_ts_read_input_report() copia el número de puntos táctiles informados por el dispositivo en un búfer en la pila u8 point_data[2 + GOODIX_MAX_CONTACT_SIZE * GOODIX_MAX_CONTACTS]; el cual tiene un tamaño para un máximo de GOODIX_MAX_CONTACTS (10) contactos. La única comprobación en tiempo de ejecución limita el recuento por interrupción contra ts -> max_touch_num, pero ese valor se toma textualmente de un campo de 4 bits del bloque de configuración del dispositivo y nunca se limita: ts -> max_touch_num = ts -> config[MAX_CONTACTS_LOC] & 0x0f; El nibble puede ser 0..15, por lo que un controlador defectuoso, malicioso o falsificado (o un atacante manipulando el bus I2C) puede anunciar hasta 15 contactos. goodix_ts_read_input_report() entonces acepta un touch_num de hasta 15 y la segunda goodix_i2c_read() escribe ts -> contact_size * (touch_num - 1) bytes más allá de la cabecera de un contacto en point_data - hasta 30 bytes (45 con el formato de informe de 9 bytes) más allá del búfer de 92 bytes: una escritura fuera de límites de la pila. Limitar max_touch_num a GOODIX_MAX_CONTACTS, el número de contactos para el que point_data[] tiene el tamaño, al leerlo de la configuración.

Information

Published : 2026-07-25 10:17

Updated : 2026-10-24 13:10


NVD link : CVE-2026-64274

Mitre link : CVE-2026-64274

CVE.ORG link : CVE-2026-64274


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-787

Out-of-bounds Write