---
title: "CVE-2014-7840\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-2014-7840?format=md
keywords: index, follow
---

# CVE-2014-7840

Publication date 14 November 2014

Last updated 24 July 2024

---

Ubuntu priority

**Low**

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

Toggle side navigation

## Description

The host\_from\_stream\_offset function in arch\_init.c in QEMU, when loading
RAM during migration, allows remote attackers to execute arbitrary code via
a crafted (1) offset or (2) length value in savevm data.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| qemu | 14.10 utopic | Fixed 2.1+dfsg-4ubuntu6.3 |
| 14.04 LTS trusty | Fixed 2.0.0+dfsg-2ubuntu1.9 |
| 12.04 LTS precise | Not in release |
| 10.04 LTS lucid | Not in release |
| qemu-kvm | 14.10 utopic | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Fixed 1.0+noroms-0ubuntu14.21 |
| 10.04 LTS lucid | Not affected |

---

* [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-2014-7840?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:   <http://git.qemu.org/?p=qemu.git;a=commit;h=0be839a2701369f669532ea5884c15bead1c6e08> |

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-2439-1](https://usn.ubuntu.com/USN-2439-1)
+ QEMU vulnerabilities
+ 11 December 2014

### Other references

* <http://thread.gmane.org/gmane.comp.emulators.qemu/306117>
* <https://www.cve.org/CVERecord?id=CVE-2014-7840>
