Descrizione
In the Linux kernel, the following vulnerability has been resolved: Input: elan_i2c - prevent division by zero and arithmetic underflow The Elan I2C touchpad driver queries the device for its physical dimensions and trace counts to calculate the device resolution and width. However, if the device firmware or device tree provides invalid zero values for x_traces or y_traces, it results in a fatal division-by-zero exception leading to a kernel panic during device probe. Add checks to ensure these parameters are non-zero before performing the division. If invalid trace values are detected, fall back to a safe default of 1. Additionally, prevent an arithmetic underflow in the touch reporting logic. Previously, if the calculated or fallback width was smaller than ETP_FWIDTH_REDUCE (90), the subtraction would underflow, resulting in a massive unsigned integer being reported to userspace. Clamp the adjusted width to a minimum of 0 to safely handle small physical dimensions and fallback scenarios. Completing the probe with safe fallback values ensures the sysfs nodes are created, keeping the firmware update path intact so a recovery firmware can be flashed to the device.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
3.19precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.96→ aggiornare alla6.12.96o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.39→ aggiornare alla6.18.39o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.4→ aggiornare alla7.1.4o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/01e0317c256c560d8dcce2e9825…
- Patch: git.kernel.org/stable/c/2f281ff0163a38fdc4cb4061f0c…
- Patch: git.kernel.org/stable/c/59d4cc5e7a9785e4bdc9c552732…
- Patch: git.kernel.org/stable/c/6bac57d8fe2a077b8a85b4140ee…
- Patch: git.kernel.org/stable/c/8c1db3418a419e788691746b9c4…
- Patch: git.kernel.org/stable/c/df2b818fa009c10ff6ba875a166…
- Patch: git.kernel.org/stable/c/f6d10af2036d1d4a847a74fe47e…
- Patch: git.kernel.org/stable/c/feb4866a42ec94764c7eb580122…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 3.19 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.96 | 6.12.96 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.39 | 6.18.39 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.4 | 7.1.4 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/01e0317c256c560d8dcce2e9825eb6142ee34611
- Patchhttps://git.kernel.org/stable/c/2f281ff0163a38fdc4cb4061f0c241e643283a5e
- Patchhttps://git.kernel.org/stable/c/59d4cc5e7a9785e4bdc9c55273274c6b49d4b58d
- Patchhttps://git.kernel.org/stable/c/6bac57d8fe2a077b8a85b4140eeb7999078158eb
- Patchhttps://git.kernel.org/stable/c/8c1db3418a419e788691746b9c47f863c2fd4890
- Patchhttps://git.kernel.org/stable/c/df2b818fa009c10ff6ba875a1663ff001cda9558
- Patchhttps://git.kernel.org/stable/c/f6d10af2036d1d4a847a74fe47ebbf93bce3c84c
- Patchhttps://git.kernel.org/stable/c/feb4866a42ec94764c7eb58012256f6f37664727