1. CVE archive
  2. 2016
  3. CVE-2016-10155

CVE-2016-10155

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

Description

Memory leak in hw/watchdog/wdt_i6300esb.c in QEMU (aka Quick Emulator) allows local guest OS privileged users to cause a denial of service (host memory consumption and QEMU process crash) via a large number of device unplug operations.

Affected products

VendorProductVersionPlatform
debian debian linux 8.0 –
qemu qemu <= 2.8.1.1 –
All 419 Qemu 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,066 CWE-401 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org