Descrizione
In the Linux kernel, the following vulnerability has been resolved: ksmbd: reserve space for the UTF-16 terminator in stream info smb_strtoUTF16() always writes a terminating zero UTF-16 unit after the converted characters, but get_file_stream_info() budgets only sizeof(struct smb2_file_stream_info) + streamlen * 2 for a stream entry and sizeof(struct smb2_file_stream_info) + 7 * 2 for the trailing "::$DATA" entry. When an entry exactly fills the 448-byte small response buffer, the terminator is written two bytes past the allocation. Reserve one extra UTF-16 unit in both budget checks. The terminator is not part of the wire format, so the reported lengths are unchanged.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: EPSS 0.2% (percentile 5).
Versioni da aggiornare
- Linux Linux: vulnerabili le versioni precedenti alla
6.18.61→ aggiornare alla6.18.61o successiva. - Linux Linux: vulnerabili le versioni precedenti alla
7.3.2→ aggiornare alla7.3.2o 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).
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 | < 6.18.61 | 6.18.61 |
| Linux | Linux | < 7.3.2 | 7.3.2 |
| Linux | Linux | — | 6.18.61 |
| Linux | Linux | — | 7.3.2 |
| Linux | Linux | — | 7.4-rc1 |
Riferimenti
- Riferimentohttps://git.kernel.org/stable/c/06a751809ebd33e95b05bf733697318a17a4872b
- Riferimentohttps://git.kernel.org/stable/c/0e64f89563164719ceb1aa33f2a8bfd6391fa340
- Riferimentohttps://git.kernel.org/stable/c/583ede545a14f275a959772b5e1e50fe3e14b861
- Riferimentohttps://git.kernel.org/stable/c/a025c4991a7d83edc4dd339e3ea86d8ff6226eca