Descrizione
In the Linux kernel, the following vulnerability has been resolved: ovl: do not copy up an xattr value that was never read Copy-up stores uninitialized kernel memory in an xattr of the upper file, where the user can read it. ovl_copy_xattr() may only pass bytes to ovl_do_setxattr() that ovl_do_getxattr() has read. When the read fails with -ERANGE the function asks for the size again, and if the new size fits the buffer it stores the buffer although nothing was read into it. The buffer comes from kvmalloc(), or it still holds the value of the previous xattr. A FUSE lower layer that answers every sized GETXATTR with -ERANGE made copy-up store 4096 bytes that the server never sent, with a kernel pointer in them, as an xattr of the upper file. Fix this by failing the copy-up with -EIO when the size that follows -ERANGE fits the buffer.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: EPSS 0.2% (percentile 9).
Versioni da aggiornare
- Linux Linux: vulnerabili le versioni dalla
3.18.27precedenti alla3.19→ aggiornare alla3.19o successiva. - Linux Linux: vulnerabili le versioni dalla
4.1.18precedenti alla4.2→ aggiornare alla4.2o successiva. - Linux Linux: vulnerabili le versioni dalla
4.4.3precedenti alla4.5→ aggiornare alla4.5o successiva. - Linux Linux: versione corretta
6.12.117(o successiva). - Linux Linux: versione corretta
6.18.61(o successiva). - Linux Linux: versione corretta
7.3.2(o successiva). - Linux Linux: versione corretta
7.4-rc1(o successiva). - Linux Linux: vulnerabile la versione
4.5→ installare l'ultima release supportata dal vendor.
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 | ≥ 3.18.27 < 3.19 | 3.19 |
| Linux | Linux | ≥ 4.1.18 < 4.2 | 4.2 |
| Linux | Linux | ≥ 4.4.3 < 4.5 | 4.5 |
| Linux | Linux | — | 6.12.117 |
| Linux | Linux | — | 6.18.61 |
| Linux | Linux | — | 7.3.2 |
| Linux | Linux | — | 7.4-rc1 |
| Linux | Linux | 4.5 | — |
Riferimenti
- Riferimentohttps://git.kernel.org/stable/c/3b1f5a4652539014f0162944f1a5f71ee520188a
- Riferimentohttps://git.kernel.org/stable/c/628260a7204314ab5f1cd93bddb1721cc0226b38
- Riferimentohttps://git.kernel.org/stable/c/755b5c5c9277be251a51623d6065abab948c61bc
- Riferimentohttps://git.kernel.org/stable/c/e35c3b1dc69b8c8efe3d751fafb9b50a85f0e2f7