Descrizione
In the Linux kernel, the following vulnerability has been resolved: tty: hvc_iucv: fix off-by-one in number of supported devices MAX_HVC_IUCV_LINES == HVC_ALLOC_TTY_ADAPTERS == 8. This is the number of entries in: static struct hvc_iucv_private *hvc_iucv_table[MAX_HVC_IUCV_LINES]; Sometimes hvc_iucv_table[] is limited by: (a) if (num > hvc_iucv_devices) // for error detection or (b) for (i = 0; i < hvc_iucv_devices; i++) // in 2 places (so these 2 don't agree; second one appears to be correct to me.) hvc_iucv_devices can be 0..8. This is a counter. (c) if (hvc_iucv_devices > MAX_HVC_IUCV_LINES) If hvc_iucv_devices == 8, (a) allows the code to access hvc_iucv_table[8]. Oops.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
2.6.29precedenti alla5.10.258→ aggiornare alla5.10.258o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.209→ aggiornare alla5.15.209o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.175→ aggiornare alla6.1.175o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.141→ aggiornare alla6.6.141o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.91→ aggiornare alla6.12.91o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.33→ aggiornare alla6.18.33o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.10→ aggiornare alla7.0.10o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/11207e42a332eb8bbcb9fe74df9…
- Patch: git.kernel.org/stable/c/3104a3f40feb107f77d7116ad9b…
- Patch: git.kernel.org/stable/c/3d3b89e6ab93bdd0efd45828bda…
- Patch: git.kernel.org/stable/c/484357dff256c816d9466bda35e…
- Patch: git.kernel.org/stable/c/a76511bc654819425d3b15e77b5…
- Patch: git.kernel.org/stable/c/f1dc8e72de9aabe5d96767a4e97…
- Patch: git.kernel.org/stable/c/f2a880e802ad12d1e38039d1334…
- Patch: git.kernel.org/stable/c/fed8b8f33a46db0ee2efdb000f4…
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 | ≥ 2.6.29 < 5.10.258 | 5.10.258 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.209 | 5.15.209 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.175 | 6.1.175 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.141 | 6.6.141 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.91 | 6.12.91 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.33 | 6.18.33 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.10 | 7.0.10 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/11207e42a332eb8bbcb9fe74df9edd2a807c5607
- Patchhttps://git.kernel.org/stable/c/3104a3f40feb107f77d7116ad9bf6c210ab7babf
- Patchhttps://git.kernel.org/stable/c/3d3b89e6ab93bdd0efd45828bda6b0e61cc46dff
- Patchhttps://git.kernel.org/stable/c/484357dff256c816d9466bda35eb765685e4dc86
- Patchhttps://git.kernel.org/stable/c/a76511bc654819425d3b15e77b523d7f9d81f064
- Patchhttps://git.kernel.org/stable/c/f1dc8e72de9aabe5d96767a4e97219ac26b79fe5
- Patchhttps://git.kernel.org/stable/c/f2a880e802ad12d1e38039d1334fb1475d0f5241
- Patchhttps://git.kernel.org/stable/c/fed8b8f33a46db0ee2efdb000f4f630c86ed8ca4