Descrizione
In the Linux kernel, the following vulnerability has been resolved: vsock: fix buffer size clamping order In vsock_update_buffer_size(), the buffer size was being clamped to the maximum first, and then to the minimum. If a user sets a minimum buffer size larger than the maximum, the minimum check overrides the maximum check, inverting the constraint. This breaks the intended socket memory boundaries by allowing the vsk->buffer_size to grow beyond the configured vsk->buffer_max_size. Fix this by checking the minimum first, and then the maximum. This ensures the buffer size never exceeds the buffer_max_size.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.5precedenti 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.140→ aggiornare alla6.6.140o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.90→ aggiornare alla6.12.90o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.32→ aggiornare alla6.18.32o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.9→ aggiornare alla7.0.9o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/01ef69785dc3162f588a361ab77…
- Patch: git.kernel.org/stable/c/0b68881501460c3761f196469e1…
- Patch: git.kernel.org/stable/c/2602f7bb5818e92315feeaeb71d…
- Patch: git.kernel.org/stable/c/310da27932dd0afe7ce7456dfe1…
- Patch: git.kernel.org/stable/c/a998a7e250bf976539e05a00ec6…
- Patch: git.kernel.org/stable/c/caf11dfea5233a69298a1c448bb…
- Patch: git.kernel.org/stable/c/d114bfdc9b76bf93b881e195b7e…
- Patch: git.kernel.org/stable/c/f6ec135941d2c1c2dbb87b5ce17…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
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 | ≥ 5.5 < 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.140 | 6.6.140 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.90 | 6.12.90 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.32 | 6.18.32 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.9 | 7.0.9 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/01ef69785dc3162f588a361ab770b1e312800188
- Patchhttps://git.kernel.org/stable/c/0b68881501460c3761f196469e1e503218c5e536
- Patchhttps://git.kernel.org/stable/c/2602f7bb5818e92315feeaeb71d8ce4d5c9ab160
- Patchhttps://git.kernel.org/stable/c/310da27932dd0afe7ce7456dfe1f0814c3301f41
- Patchhttps://git.kernel.org/stable/c/a998a7e250bf976539e05a00ec64a81292afecaa
- Patchhttps://git.kernel.org/stable/c/caf11dfea5233a69298a1c448bbf8d1639c80536
- Patchhttps://git.kernel.org/stable/c/d114bfdc9b76bf93b881e195b7ec957c14227bab
- Patchhttps://git.kernel.org/stable/c/f6ec135941d2c1c2dbb87b5ce1783f4f6ac6ccca
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-784472.html