---
title: "CVE-2018-20126\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2018-20126?format=md
keywords: index, follow
---

# CVE-2018-20126

Publication date 20 December 2018

Last updated 25 August 2025

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**5.5 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2018-20126?format=md#impact-score)

Toggle side navigation

## Description

hw/rdma/vmw/pvrdma\_cmd.c in QEMU allows create\_cq and create\_qp memory
leaks because errors are mishandled.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| qemu | 18.10 cosmic | Fixed 1:2.12+dfsg-3ubuntu8.6 |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |
| qemu-kvm | 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2018-20126?format=md#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| qemu | * Upstream:   <https://git.qemu.org/?p=qemu.git;a=commit;h=509f57c98e7536905bb4902363d0cba66ce7e089> |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

5.5 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Local |
  | Attack complexity | Low |
  | Privileges required | Low |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 5.5 · Medium |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-20126)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-20126)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2018-20126)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2018-20126)

### Related Ubuntu Security Notices (USN)

+ [USN-3923-1](https://usn.ubuntu.com/USN-3923-1)
+ QEMU vulnerabilities
+ 27 March 2019

### Other references

* <https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg02824.html>
* <https://www.cve.org/CVERecord?id=CVE-2018-20126>
