Descrizione
OpenFlow Plugin and OpenDayLight Controller versions Nitrogen, Carbon, Boron, Robert Varga, Anil Vishnoi contain a flaw when multiple 'expired' flows take up the memory resource of CONFIG DATASTORE which leads to CONTROLLER shutdown. If multiple different flows with 'idle-timeout' and 'hard-timeout' are sent to the Openflow Plugin REST API, the expired flows will eventually crash the controller once its resource allocations set with the JVM size are exceeded. Although the installed flows (with timeout set) are removed from network (and thus also from controller's operations DS), the expired entries are still present in CONFIG DS. The attack can originate both from NORTH or SOUTH. The above description is for a north bound attack. A south bound attack can originate when an attacker attempts a flow flooding attack and since flows come with timeouts, the attack is not successful. However, the attacker will now be successful in CONTROLLER overflow attack (resource consumption). Although, the network (actual flow tables) and operational DS are only (~)1% occupied, the controller requests for resource consumption. This happens because the installed flows get removed from the network upon timeout.
Tipo di vulnerabilità
CWE-404
Chiusura o rilascio improprio di una risorsa
Il prodotto non rilascia, o rilascia in modo errato, una risorsa prima che venga resa disponibile per un nuovo uso.
Impatto sui sistemi
| Ambito | Impatto |
| Disponibilità, Altro |
Interruzione del servizio: esaurimento di risorse, Dipende dal contesto |
| Riservatezza |
Leggere i dati dell’applicazione |
Come si previene
Requisiti · Scelta del linguaggio
Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
Sviluppo
It is good practice to be responsible for freeing all resources you allocate and to be consistent with how and where you free memory in a function. If you allocate memory that you intend to free upon completion of the function, you must be sure to free the memory at all exit points for that function including error conditions.
Sviluppo
Memory should be allocated/freed using matching functions such as malloc/free, new/delete, and new[]/delete[].
Sviluppo
When releasing a complex object or structure, ensure that you properly dispose of all of its member components, not just the object itself.
Tutte le 733 CVE di tipo CWE-404, con andamento e prevenzione