CVE-2026-64273

In the Linux kernel, the following vulnerability has been resolved: Input: iforce - bound the device-reported force-feedback effect index iforce_process_packet() handles a status report (packet id 0x02) by taking a force-feedback effect index straight from the device wire and using it to address the per-effect state array: i = data[1] & 0x7f; if (data[1] & 0x80) { if (!test_and_set_bit(FF_CORE_IS_PLAYED, iforce->core_effects[i].flags)) ... } else if (test_and_clear_bit(FF_CORE_IS_PLAYED, iforce->core_effects[i].flags)) { ... } The index is masked only with 0x7f, so it ranges 0..127, but core_effects[] holds only IFORCE_EFFECTS_MAX (32) entries. For an index of 32..127 the test_and_set_bit()/test_and_clear_bit() is an out-of-bounds single-bit read-modify-write past the array. core_effects[] is the second-to-last member of struct iforce, so the write lands in the trailing members and beyond the embedding kzalloc()'d iforce_serio / iforce_usb object. data[1] is unvalidated device payload on both transports (the USB interrupt endpoint and serio), and the status path is not gated on force feedback being present, so a malicious or counterfeit device can set or clear a bit at an attacker-chosen offset past the object. Reject an out-of-range index instead of indexing with it. Bound against the array dimension IFORCE_EFFECTS_MAX rather than dev->ff->max_effects so the check guarantees memory safety regardless of how many effects the device registered. A legitimate "effect started/stopped" status always carries an index below IFORCE_EFFECTS_MAX, so well-formed devices are unaffected; the neighbouring mark_core_as_ready() loop is already bounded and is left untouched.
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:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:*

History

24 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Entrada: iforce - se limitó el índice de efecto de retroalimentación de fuerza reportado por el dispositivo iforce_process_packet() maneja un informe de estado (ID de paquete 0x02) tomando un índice de efecto de retroalimentación de fuerza directamente del cable del dispositivo y usándolo para direccionar el array de estado por efecto: i = data[1] & 0x7f; if (data[1] & 0x80) { if (!test_and_set_bit(FF_CORE_IS_PLAYED, iforce -> core_effects[i].flags)) ... } else if (test_and_clear_bit(FF_CORE_IS_PLAYED, iforce -> core_effects[i].flags)) { ... } El índice se enmascara solo con 0x7f, por lo que su rango es 0..127, pero core_effects[] contiene solo IFORCE_EFFECTS_MAX (32) entradas. Para un índice de 32..127, el test_and_set_bit()/test_and_clear_bit() es una operación de lectura-modificación-escritura de un solo bit fuera de los límites del array. core_effects[] es el penúltimo miembro de la estructura iforce, por lo que la escritura cae en los miembros finales y más allá del objeto iforce_serio / iforce_usb incrustado asignado con kzalloc(). data[1] es una carga útil de dispositivo no validada en ambos transportes (el punto final de interrupción USB y serio), y la ruta de estado no está condicionada a la presencia de retroalimentación de fuerza, por lo que un dispositivo malicioso o falsificado puede establecer o borrar un bit en un desplazamiento elegido por el atacante más allá del objeto. Rechazar un índice fuera de rango en lugar de indexar con él. Limitar contra la dimensión del array IFORCE_EFFECTS_MAX en lugar de dev -> ff -> max_effects para que la comprobación garantice la seguridad de la memoria independientemente de cuántos efectos haya registrado el dispositivo. Un estado legítimo de ’efecto iniciado/detenido’ siempre lleva un índice por debajo de IFORCE_EFFECTS_MAX, por lo que los dispositivos bien formados no se ven afectados; el bucle adyacente mark_core_as_ready() ya está limitado y se deja intacto.

Information

Published : 2026-07-25 10:17

Updated : 2026-10-24 13:10


NVD link : CVE-2026-64273

Mitre link : CVE-2026-64273

CVE.ORG link : CVE-2026-64273


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-129

Improper Validation of Array Index