Descrizione
In the Linux kernel, the following vulnerability has been resolved: fuse: reject oversized dirents in page cache fuse_add_dirent_to_cache() computes a serialized dirent size from the server-controlled namelen field and copies the dirent into a single page-cache page. The existing logic only checks whether the dirent fits in the remaining space of the current page and advances to a fresh page if not. It never checks whether the dirent itself exceeds PAGE_SIZE. As a result, a malicious FUSE server can return a dirent with namelen=4095, producing a serialized record size of 4120 bytes. On 4 KiB page systems this causes memcpy() to overflow the cache page by 24 bytes into the following kernel page. Reject dirents that cannot fit in a single page before copying them into the readdir cache.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
6.15precedenti alla6.18.25→ aggiornare alla6.18.25o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.2→ aggiornare alla7.0.2o successiva. - Linux Linux Kernel: vulnerabile la versione
7.1 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc2→ installare l'ultima release supportata dal vendor. - Siemens Simatic S7-1500 Tm Mfp Firmware: versioni non specificate → verificare l'advisory del vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/474ce83c96a55f2eeb14dee2be3…
- Patch: git.kernel.org/stable/c/51a8de6c50bf947c8f534cd73da…
- Patch: git.kernel.org/stable/c/7de93abfaae1b2dc94da8a07a36…
- Advisory di terze parti: cert-portal.siemens.com/productcert/html/ssa-784472.html
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 | ≥ 6.15 < 6.18.25 | 6.18.25 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.2 | 7.0.2 |
| Linux | Linux Kernel | 7.1 rc1 | — |
| Linux | Linux Kernel | 7.1 rc2 | — |
| Siemens | Simatic S7-1500 Tm Mfp Firmware | — | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/474ce83c96a55f2eeb14dee2be375eeadfdacdf5
- Patchhttps://git.kernel.org/stable/c/51a8de6c50bf947c8f534cd73da4c8f0a13e7bed
- Patchhttps://git.kernel.org/stable/c/7de93abfaae1b2dc94da8a07a36421bd073f1d8f
- Advisory di terze partihttps://cert-portal.siemens.com/productcert/html/ssa-784472.html