1. Archivio CVE
  2. 2018
  3. CVE-2018-17205

CVE-2018-17205

7.5 Gravità alta CVSS v3.0 · fonte NVD CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – Alta

Descrizione

An issue was discovered in Open vSwitch (OvS) 2.7.x through 2.7.6, affecting ofproto_rule_insert__ in ofproto/ofproto.c. During bundle commit, flows that are added in a bundle are applied to ofproto in order. If a flow cannot be added (e.g., the flow action is a go-to for a group id that does not exist), OvS tries to revert back all previous flows that were successfully applied from the same bundle. This is possible since OvS maintains list of old flows that were replaced by flows from the bundle. While reinserting old flows, OvS has an assertion failure due to a check on rule state != RULE_INITIALIZED. This would work for new flows, but for an old flow the rule state is RULE_REMOVED. The assertion failure causes an OvS crash.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
canonical ubuntu linux 16.04 –
canonical ubuntu linux 18.04 –
openvswitch openvswitch >= 2.7.0 <= 2.7.6 –
redhat openstack 10 –
redhat openstack 13 –
Tutte le 268 vulnerabilità di Redhat Openstack

Tipo di vulnerabilità

CWE-617 Asserzione raggiungibile

Il prodotto contiene un assert() o un’istruzione simile che un attaccante può far scattare, causando la chiusura dell’applicazione o un comportamento più grave del necessario.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: arresto o riavvio

Come si previene

Sviluppo If the assertion statement is required (e.g., for security or reliability), change the invoking code to avoid the conditions that trigger the assertion.
Sviluppo Consider changing the assertion to some other less fatal error. This might not be easy to implement, since other code may be needed to handle the error.
Sviluppo Make sensitive open/close operations non-reachable from directly user-controlled data (e.g. open/close resources)
Sviluppo · Validazione dell’input Perform input validation on user data.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 925 CVE di tipo CWE-617, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org