Descrizione
In the Linux kernel, the following vulnerability has been resolved: tcp: Fix potential UAF in reqsk_timer_handler(). When TCP socket migration fails at inet_ehash_insert() in reqsk_timer_handler(), we jump to the no_ownership: label and free the new reqsk immediately with __reqsk_free(). Thus, we must stop the new reqsk's timer before jumping to the label, but the timer might be missed since the cited commit, resulting in UAF. As we are in the original reqsk's timer context, we can safely call timer_delete_sync() for the new reqsk. Let's pass false to __inet_csk_reqsk_queue_drop() to stop the new reqsk's timer.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1, EPSS 0.3% (percentile 27).
Versioni da aggiornare
- Linux Linux: vulnerabili le versioni dalla
4.1.11precedenti alla4.2→ aggiornare alla4.2o successiva. - Linux Linux: versione corretta
6.18.61(o successiva). - Linux Linux: versione corretta
7.1(o successiva). - Linux Linux: vulnerabile la versione
4.2→ 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 | ≥ 4.1.11 < 4.2 | 4.2 |
| Linux | Linux | — | 6.18.61 |
| Linux | Linux | — | 7.1 |
| Linux | Linux | 4.2 | — |
Riferimenti
- Riferimentohttps://git.kernel.org/stable/c/97c8a3c1f73d828de43a5a88e8a9a143efb2b661
- Riferimentohttps://git.kernel.org/stable/c/b3b56e95f6fad7fa7281450b443e861d82616fdb
- Riferimentohttps://git.kernel.org/stable/c/bd3a72a14b1040f0e7ea827bd31322e26e2a9fae
- Riferimentohttps://git.kernel.org/stable/c/c130cc5f70b1f8f1f8f18432dfdc90ac59673f31
- Riferimentohttps://git.kernel.org/stable/c/d7f28a027af63a9d47784fd89d72ae15d87b7d5f
- Riferimentohttps://git.kernel.org/stable/c/f7fba81b00699360f96ed7d9a47b8c801e74c6f9