{"id":"CVE-2026-64277","aliases":["CVE-2026-64277"],"related":[],"kind":"vulnerability","state":"published","title":"Input: synaptics-rmi4 - bound the F3A keymap to the GPIO count","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: synaptics-rmi4 - bound the F3A keymap to the GPIO count\n\nrmi_f3a_initialize() takes the GPIO count from the device query register\n(f3a->gpio_count = buf & RMI_F3A_GPIO_COUNT, range 0..127).\nrmi_f3a_map_gpios() then allocates gpio_key_map with\nmin(gpio_count, TRACKSTICK_RANGE_END) == at most 6 entries, but\nrmi_f3a_attention() iterates the full gpio_count and dereferences\ngpio_key_map[i], and input->keycodemax is set to the full gpio_count\nwhile input->keycode points at the 6-entry allocation.\n\nA device that reports gpio_count > 6 therefore causes an out-of-bounds\nread of gpio_key_map[] on every attention interrupt, and out-of-bounds\naccesses through the input core's default keymap ioctls: EVIOCGKEYCODE\nreads past the buffer (leaking adjacent slab memory to user space) and\nEVIOCSKEYCODE writes a caller-controlled value past it, for any process\nable to open the evdev node, since input_default_getkeycode() and\ninput_default_setkeycode() only bound the index against keycodemax.\n\nSize the keymap for the full gpio_count. The mapping loop is unchanged:\nit still assigns only the first min(gpio_count, TRACKSTICK_RANGE_END)\nentries; the remaining slots stay KEY_RESERVED (devm_kcalloc zero-fills)\nand are skipped when reporting.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: synaptics-rmi4 - bound the F3A keymap to the GPIO count\n\nrmi_f3a_initialize() takes the GPIO count from the device query register\n(f3a->gpio_count = buf & RMI_F3A_GPIO_COUNT, range 0..127).\nrmi_f3a_map_gpios() then allocates gpio_key_map with\nmin(gpio_count, TRACKSTICK_RANGE_END) == at most 6 entries, but\nrmi_f3a_attention() iterates the full gpio_count and dereferences\ngpio_key_map[i], and input->keycodemax is set to the full gpio_count\nwhile input->keycode points at the 6-entry allocation.\n\nA device that reports gpio_count > 6 therefore causes an out-of-bounds\nread of gpio_key_map[] on every attention interrupt, and out-of-bounds\naccesses through the input core's default keymap ioctls: EVIOCGKEYCODE\nreads past the buffer (leaking adjacent slab memory to user space) and\nEVIOCSKEYCODE writes a caller-controlled value past it, for any process\nable to open the evdev node, since input_default_getkeycode() and\ninput_default_setkeycode() only bound the index against keycodemax.\n\nSize the keymap for the full gpio_count. The mapping loop is unchanged:\nit still assigns only the first min(gpio_count, TRACKSTICK_RANGE_END)\nentries; the remaining slots stay KEY_RESERVED (devm_kcalloc zero-fills)\nand are skipped when reporting.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nInput: synaptics-rmi4 - vinculó el mapa de teclas F3A al recuento de GPIO\n\nrmi_f3a_initialize() toma el recuento de GPIO del registro de consulta del dispositivo (f3a  ->  gpio_count = buf & RMI_F3A_GPIO_COUNT, rango 0..127).\nrmi_f3a_map_gpios() luego asigna gpio_key_map con min(gpio_count, TRACKSTICK_RANGE_END) == como máximo 6 entradas, pero rmi_f3a_attention() itera el gpio_count completo y desreferencia gpio_key_map[i], y input  ->  keycodemax se establece en el gpio_count completo mientras que input  ->  keycode apunta a la asignación de 6 entradas.\n\nUn dispositivo que reporta gpio_count > 6, por lo tanto, causa una lectura fuera de límites de gpio_key_map[] en cada interrupción de atención, y accesos fuera de límites a través de los ioctls del mapa de teclas predeterminado del núcleo de entrada: EVIOCGKEYCODE lee más allá del búfer (filtrando memoria slab adyacente al espacio de usuario) y EVIOCSKEYCODE escribe un valor controlado por el llamador más allá de él, para cualquier proceso capaz de abrir el nodo evdev, ya que input_default_getkeycode() y input_default_setkeycode() solo vincularon el índice contra keycodemax.\n\nDimensionar el mapa de teclas para el gpio_count completo. El bucle de mapeo no ha cambiado: todavía asigna solo las primeras min(gpio_count, TRACKSTICK_RANGE_END) entradas; las ranuras restantes permanecen KEY_RESERVED (devm_kcalloc rellena con ceros) y se omiten al informar.","source":"nvd"}],"published":"2026-07-25T08:49:21.936Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125","CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"9e4c596bfd004f447a652205163234dfd4aafa69","fixed":"502ad7caaa1a445b734c827fa256e5311df67e3d","status":"affected"},{"type":"git","introduced":"9e4c596bfd004f447a652205163234dfd4aafa69","fixed":"3480e24bc4e178aaa009edb25b6ee12df199e210","status":"affected"},{"type":"git","introduced":"9e4c596bfd004f447a652205163234dfd4aafa69","fixed":"35ed74d32d8260bdfb14a94caf402bf0866bdeec","status":"affected"},{"type":"git","introduced":"9e4c596bfd004f447a652205163234dfd4aafa69","fixed":"ba57f430328534501962d60d651e385ffd7af9ca","status":"affected"},{"type":"git","introduced":"9e4c596bfd004f447a652205163234dfd4aafa69","fixed":"850117b637bcb1dcc14be0cf09ac819a8707b42c","status":"affected"},{"type":"git","introduced":"9e4c596bfd004f447a652205163234dfd4aafa69","fixed":"8db211aed83733073b0814adaeeab61d4521474e","status":"affected"},{"type":"git","introduced":"9e4c596bfd004f447a652205163234dfd4aafa69","fixed":"64fb0e1161ccc6b9e48b8df61f07d3c34c01ec42","status":"affected"},{"type":"git","introduced":"9e4c596bfd004f447a652205163234dfd4aafa69","fixed":"57c10915f2c16c90e0d46ad00876bf39ece40fc2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.261","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.212","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.96","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.39","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.4","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10","fixed":"5.10.261"},{"status":"affected","introduced":"5.11","fixed":"5.15.212"},{"status":"affected","introduced":"5.16","fixed":"6.1.178"},{"status":"affected","introduced":"6.2","fixed":"6.6.145"},{"status":"affected","introduced":"6.7","fixed":"6.12.96"},{"status":"affected","introduced":"6.13","fixed":"6.18.39"},{"status":"affected","introduced":"6.19","fixed":"7.1.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/502ad7caaa1a445b734c827fa256e5311df67e3d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3480e24bc4e178aaa009edb25b6ee12df199e210","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35ed74d32d8260bdfb14a94caf402bf0866bdeec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba57f430328534501962d60d651e385ffd7af9ca","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/850117b637bcb1dcc14be0cf09ac819a8707b42c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8db211aed83733073b0814adaeeab61d4521474e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64fb0e1161ccc6b9e48b8df61f07d3c34c01ec42","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57c10915f2c16c90e0d46ad00876bf39ece40fc2","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:38:13.158Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64277","url":"https://www.cve.org/CVERecord?id=CVE-2026-64277","licence":"CVE Terms of Use","modified":"2026-10-19T20:28:17.252Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64277","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64277","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.049Z","epss":{"score":0.00176,"percentile":0.04189,"date":"2026-11-30T12:00:22.000Z"}}