Descrizione
Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network Security Monitoring engine. Starting in version 8.0.0 and prior to version 8.0.5, when certain detection transforms are chained, the decompress transform pipeline could read from an inspection buffer after it had been reallocated and freed. The issue is reached during network traffic processing, but requires a malicious rule as Suricata will crash whatever the traffic. Version 8.0.5 contains a fix. As a workaround, avoid rules that chain `gunzip` or `zlib_deflate` with `max-size` bigger than 4096 after another transform.
Tipo di vulnerabilità
CWE-416
Uso di memoria dopo la liberazione (use after free)
Il prodotto usa o fa riferimento a un’area di memoria dopo averla liberata. Nel frattempo quell’area può essere stata assegnata ad altro: ogni operazione fatta con il vecchio puntatore agisce su dati che non le appartengono più.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità |
Modificare la memoria |
| Disponibilità |
Interruzione del servizio: arresto o riavvio |
| Riservatezza |
Leggere la memoria |
| Integrità, Riservatezza, Disponibilità |
Eseguire codice o comandi non autorizzati |
Come si previene
Architettura e progettazione · Scelta del linguaggio
Choose a language that provides automatic memory management.
Sviluppo · Riduzione della superficie di attacco
When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Tutte le 9.631 CVE di tipo CWE-416, con andamento e prevenzione