7.1high
HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.32% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections A report in 2019 by the syzbot fuzzer was found to be connected to two errors in the HID core associated with Resolution Multipliers. One of the errors was fixed by commit ea427a222d8b ("HID: core: Fix deadloop in hid_apply_multiplier."), but the other has not been fixed. This error arises because hid_apply_multipler() assumes that every Resolution Multiplier control is contained in a Logical Collection, i.e., there's no way the routine can ever set multiplier_collection to NULL. This is in spite of the fact that the function starts with a big comment saying: * "The Resolution Multiplier control must be contained in the same * Logical Collection as the control(s) to which it is to be applied. ... * If no Logical Collection is * defined, the Resolution Multiplier is associated with all * controls in the report." * HID Usage Table, v1.12, Section 4.3.1, p30 * * Thus, search from the current collection upwards until we find a * logical collection... The comment and the code overlook the possibility that none of the collections found may be a Logical Collection. The fix is to set the multiplier_collection pointer to NULL if the collection found isn't a Logical Collection.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc before 3a002e4029230d9a6be89f869b2328b258612f5c, from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc before 05dd7d10675b540b8b7b31035c0a8abb6e6f3b88, from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc before a32ea3f982b389ea43a41ce77b6fb70d74006d9b, from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc before bebf542e8d7c44a18a95f306b1b5dc160c823506, from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc before ed3d3883476423f337aac0f22c521819b3f1e970, from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc before ebaeca33d32c8bdb705a8c88267737a456f354b1, from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc before a5498f1f864ea26f4c613c77f54409c776a95a90, from 5a4abb36f312cf83206b1b7d1308ba47cba0b3cc before 64f2657b579343cf923aa933f08074e6258eb07b and 1 more Not affected: before 5.0, from 5.4.291 up to 5.4.*, from 5.10.235 up to 5.10.*, from 5.15.179 up to 5.15.*, from 6.1.129 up to 6.1.*, from 6.6.76 up to 6.6.* | CVE List |
| linux linux_kernel | from 5.0 before 5.4.291, from 5.5 before 5.10.235, from 5.11 before 5.15.179, from 5.16 before 6.1.129, from 6.2 before 6.6.76, from 6.7 before 6.12.13, from 6.13 before 6.13.2 | NVD |
All scores
| Linux | 7.1high CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: HID: core: Fix assumption that Resolution Multipliers must be in Logical Collections A report in 2019 by the syzbot fuzzer was found to be connected to two errors in the HID core associated with Resolution Multipliers. One of the errors was fixed by commit ea427a222d8b ("HID: core: Fix deadloop in hid_apply_multiplier."), but the other has not been fixed. This error arises because hid_apply_multipler() assumes that every Resolution Multiplier control is contained in a Logical Collection, i.e., there's no way the routine can ever set multiplier_collection to NULL. This is in spite of the fact that the function starts with a big comment saying: * "The Resolution Multiplier control must be contained in the same * Logical Collection as the control(s) to which it is to be applied. ... * If no Logical Collection is * defined, the Resolution Multiplier is associated with all * controls in the report." * HID Usage Table, v1.12, Section 4.3.1, p30 * * Thus, search from the current collection upwards until we find a * logical collection... The comment and the code overlook the possibility that none of the collections found may be a Logical Collection. The fix is to set the multiplier_collection pointer to NULL if the collection found isn't a Logical Collection.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: HID: core: Fix posture that Resolution Multipliers must be in Logical Collections Se descubrió que un informe de 2019 del fuzzer syzbot estaba relacionado con dos errores en el núcleo de HID asociados con Resolution Multipliers. Uno de los errores se solucionó con el commit ea427a222d8b ("HID: core: Fix deadloop in hid_apply_multipler."), pero el otro no se solucionó. Este error surge porque hid_apply_multipler() asume que cada control Resolution Multiplier está contenido en una colección lógica, es decir, no hay forma de que la rutina pueda establecer multiplier_collection en NULL. Esto es a pesar del hecho de que la función comienza con un gran comentario que dice: * "El control Multiplicador de resolución debe estar contenido en la misma * Colección lógica que el control o los controles a los que se aplicará. ... * Si no se define ninguna Colección lógica, el Multiplicador de resolución se asocia con todos los * controles del informe". * Tabla de uso de HID, v1.12, Sección 4.3.1, p30 * * Por lo tanto, busque desde la colección actual hacia arriba hasta que encontremos una * colección lógica... El comentario y el código pasan por alto la posibilidad de que ninguna de las colecciones encontradas pueda ser una Colección lógica. La solución es establecer el puntero multiplier_collection en NULL si la colección encontrada no es una Colección lógica.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-57986 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2024-57986 changed 2026-10-15 | Public domain |