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

CVE-2018-17205

7.5 High severity CVSS v3.0 · source NVD CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – High

Description

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.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 16.04 –
canonical ubuntu linux 18.04 –
openvswitch openvswitch >= 2.7.0 <= 2.7.6 –
redhat openstack 10 –
redhat openstack 13 –
All 264 Redhat Openstack vulnerabilities

Vulnerability type

CWE-617 Reachable Assertion

The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.

Impact on systems

ScopeImpact
Availability DoS: Crash, Exit, or Restart
While assertion is good for catching logic errors and reducing the chances of reaching more serious vulnerability conditions, an attacker can still cause a denial of service if they can trigger an assert statement, and if the scope of the assert() extends beyond the attacker's own session. For example, if a server handles multiple simultaneous connections, if an assert() occurs in one single connection that causes all other connections to be dropped, this could be a significant denial of service.

How to prevent it

Implementation If the assertion statement is required (e.g., for security or reliability), change the invoking code to avoid the conditions that trigger the assertion.
Implementation 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.
Implementation Make sensitive open/close operations non-reachable from directly user-controlled data (e.g. open/close resources)
Implementation · Input Validation Perform input validation on user data.

All 933 CWE-617 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org