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

CVE-2018-0158

8.6 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H 8.6 – High

Description

A vulnerability in the Internet Key Exchange Version 2 (IKEv2) module of Cisco IOS Software and Cisco IOS XE Software could allow an unauthenticated, remote attacker to cause a memory leak or a reload of an affected device that leads to a denial of service (DoS) condition. The vulnerability is due to incorrect processing of certain IKEv2 packets. An attacker could exploit this vulnerability by sending crafted IKEv2 packets to an affected device to be processed. A successful exploit could cause an affected device to continuously consume memory and eventually reload, resulting in a DoS condition. Cisco Bug IDs: CSCvf22394.

Affected products

VendorProductVersionPlatform
cisco ios 15.5(3)s1.1 –
cisco ios 15.5(3)s1.2 –
cisco ios 15.5(3)s1.4 –
cisco ios 15.5(3)s1.5 –
cisco ios 15.5(3)s1.7 –
cisco ios 15.5(3)s1.8 –
cisco ios 15.5(3)s1.9 –
cisco ios 15.5(3)s1.10 –
cisco ios 15.5(3)s1.11 –
cisco ios 15.5(3)s1.12 –
cisco ios xe 15.5(3)s1.1 –
cisco ios xe 15.5(3)s1.2 –
cisco ios xe 15.5(3)s1.4 –
cisco ios xe 15.5(3)s1.5 –
cisco ios xe 15.5(3)s1.7 –
cisco ios xe 15.5(3)s1.8 –
cisco ios xe 15.5(3)s1.9 –
cisco ios xe 15.5(3)s1.10 –
cisco ios xe 15.5(3)s1.11 –
cisco ios xe 15.5(3)s1.12 –
All 622 Cisco Ios vulnerabilities
All 551 Cisco Ios Xe vulnerabilities

Vulnerability type

CWE-401 Missing Release of Memory after Effective Lifetime

The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.

Impact on systems

ScopeImpact
Availability DoS: Crash, Exit, or Restart, DoS: Instability, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
Most memory leaks result in general product reliability problems, but if an attacker can intentionally trigger a memory leak, the attacker might be able to launch a denial of service attack (by crashing or hanging the program) or take advantage of other unexpected program behavior resulting from a low memory condition.
Other Reduce Performance

How to prevent it

Implementation · Libraries or Frameworks Choose a language or tool that provides automatic memory management, or makes manual memory management less error-prone. For example, glibc in Linux provides protection against free of invalid pointers. When using Xcode to target OS X or iOS, enable automatic reference counting (ARC). To help correctly and consistently manage memory when programming in C++, consider using a smart pointer class such as std
Architecture and Design Use an abstraction library to abstract away risky APIs. Not a complete solution.
Architecture and Design · Build and Compilation Consider using the Boehm-Demers-Weiser garbage collector (bdwgc), which can help avoid leaks.

All 2,075 CWE-401 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org