Every CVE Search/ Get API key

CVE-2014-7840

The host_from_stream_offset function in arch_init.c in QEMU, when loading RAM during migration,...

7.5 HighFix available

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.

Exploit likelihood

4.12%Down 3.7 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2014-7840
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-20
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2014-7840
Updated
2026-11-02
EUVDEUVD-2014-7694 No score

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.

Record
EUVD-2014-7694
Updated
2026-11-03
GitHub AdvisoriesGHSA-m2wj-gq82-h93m No score

The host_from_stream_offset function in arch_init.c in QEMU, when loading RAM during migration,...

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.

Record
GHSA-m2wj-gq82-h93m
Weakness
CWE-20
Updated
2026-11-02
OSV No score

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.

Record
CVE-2014-7840
Updated
2026-11-02
OSVDEBIAN-CVE-2014-7840 No score

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.

Record
DEBIAN-CVE-2014-7840
Updated
2026-11-02
Show 5 moreShow less
OSVMGASA-2014-0525 No score

Updated qemu packages fix security vulnerabilities

Updated qemu packages fix security vulnerabilities:

During migration, the values read from migration stream during ram load are not validated. Especially offset in host_from_stream_offset() and also the length of the writes in the callers of the said function. A user able to alter the savevm data (either on the disk or over the wire during migration) could use either of these flaws to corrupt QEMU process memory on the (destination) host, which could potentially result in arbitrary code execution on the host with the privileges of the QEMU process (CVE-2014-7840).

Paolo Bonzini of Red Hat discovered that the blit region checks were insufficient in the Cirrus VGA emulator in qemu. A privileged guest user could use this flaw to write into qemu address space on the host, potentially escalating their privileges to those of the qemu host process (CVE-2014-8106).

Record
MGASA-2014-0525
Updated
2026-11-02
OSVSUSE-SU-2015:0349-1 No score

Security update for qemu

QEMU was updated to fix various bugs and security issues.

Following security issues were fixed: CVE-2014-8106: Heap-based buffer overflow in the Cirrus VGA emulator (hw/display/cirrus_vga.c) in QEMU allowed local guest users to execute arbitrary code via vectors related to blit regions.

CVE-2014-7840: The host_from_stream_offset function in arch_init.c in QEMU, when loading RAM during migration, allowed remote attackers to execute arbitrary code via a crafted (1) offset or (2) length value in savevm data.

Also a bug was fixed where qemu-img convert could occasionaly corrupt images. (bsc#908380)

Record
SUSE-SU-2015:0349-1
Updated
2026-11-02
OSVSUSE-SU-2015:0357-1 No score

Security update for kvm and libvirt

This collective update for KVM and libvirt provides fixes for security and non-security issues.

kvm:

* Fix NULL pointer dereference because of uninitialized UDP socket.
  (bsc#897654, CVE-2014-3640)
* Fix performance degradation after migration. (bsc#878350)
* Fix potential image corruption due to missing FIEMAP_FLAG_SYNC flag
  in FS_IOC_FIEMAP ioctl. (bsc#908381)
* Add validate hex properties for qdev. (bsc#852397)
* Add boot option to do strict boot (bsc#900084)
* Add query-command-line-options QMP command. (bsc#899144)
* Fix incorrect return value of migrate_cancel. (bsc#843074)
* Fix insufficient parameter validation during ram load. (bsc#905097,
  CVE-2014-7840)
* Fix insufficient blit region checks in qemu/cirrus. (bsc#907805,
  CVE-2014-8106)

libvirt:

* Fix security hole with migratable flag in dumpxml. (bsc#904176,
  CVE-2014-7823)
* Fix domain deadlock. (bsc#899484, CVE-2014-3657)
* Use correct definition when looking up disk in qemu blkiotune.
  (bsc#897783, CVE-2014-3633)
* Fix undefined symbol when starting virtlockd. (bsc#910145)
* Add '-boot strict' to qemu's commandline whenever possible.
  (bsc#900084)
* Add support for 'reboot-timeout' in qemu. (bsc#899144)
* Increase QEMU's monitor timeout to 30sec. (bsc#911742)
* Allow setting QEMU's migration max downtime any time. (bsc#879665)

Security Issues:

* CVE-2014-7823
  <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-7823>
* CVE-2014-3657
  <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3657>
* CVE-2014-3633
  <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3633>
* CVE-2014-3640
  <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3640>
* CVE-2014-7840
  <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-7840>
* CVE-2014-8106
  <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-8106>
Record
SUSE-SU-2015:0357-1
Updated
2026-11-02
OSVUBUNTU-CVE-2014-7840 No score

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.

Record
UBUNTU-CVE-2014-7840
Updated
2026-11-02
OSVUSN-2439-1 No score

qemu, qemu-kvm vulnerabilities

Michael S. Tsirkin discovered that QEMU incorrectly handled certain parameters during ram load while performing a migration. An attacker able to manipulate savevm data could use this issue to possibly execute arbitrary code on the host. This issue only affected Ubuntu 12.04 LTS, Ubuntu 14.04 LTS, and Ubuntu 14.10. (CVE-2014-7840)

Paolo Bonzini discovered that QEMU incorrectly handled memory in the Cirrus VGA device. A malicious guest could possibly use this issue to write into memory of the host, leading to privilege escalation. (CVE-2014-8106)

Record
USN-2439-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
qemu
Debian:12
before 2.1+dfsg-8
2.1+dfsg-8
qemu
Debian:13
before 2.1+dfsg-8
2.1+dfsg-8
qemu
Debian:14
before 2.1+dfsg-8
2.1+dfsg-8
qemu
Mageia:4
From an advisory covering 2 CVEs
before 1.6.2-1.7.mga4
1.6.2-1.7.mga4
libcacard-devel
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard-tools
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-debuginfo
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-img
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
Show 39 moreShow less
Affected packages
PackageAffectedFixed
qemu-kvm-common
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-tools
Red Hat:enterprise_linux:7::client
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard-devel
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard-tools
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-img
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-common
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-debuginfo
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-tools
Red Hat:enterprise_linux:7::computenode
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard-devel
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard-tools
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-debuginfo
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-img
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-common
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-tools
Red Hat:enterprise_linux:7::server
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard-devel
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard-tools
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-debuginfo
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-img
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-common
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
qemu-kvm-tools
Red Hat:enterprise_linux:7::workstation
From an advisory covering 4 CVEs
before 10:1.5.3-86.el7
10:1.5.3-86.el7
libcacard-devel-rhev
Red Hat:enterprise_linux:7::hypervisor
From an advisory covering 4 CVEs
before 10:2.1.2-23.el7
10:2.1.2-23.el7
libcacard-rhev
Red Hat:enterprise_linux:7::hypervisor
From an advisory covering 4 CVEs
before 10:2.1.2-23.el7
10:2.1.2-23.el7
libcacard-tools-rhev
Red Hat:enterprise_linux:7::hypervisor
From an advisory covering 4 CVEs
before 10:2.1.2-23.el7
10:2.1.2-23.el7
qemu-img-rhev
Red Hat:enterprise_linux:7::hypervisor
From an advisory covering 4 CVEs
before 10:2.1.2-23.el7
10:2.1.2-23.el7
qemu-kvm-common-rhev
Red Hat:enterprise_linux:7::hypervisor
From an advisory covering 4 CVEs
before 10:2.1.2-23.el7
10:2.1.2-23.el7
qemu-kvm-rhev
Red Hat:enterprise_linux:7::hypervisor
From an advisory covering 4 CVEs
before 10:2.1.2-23.el7
10:2.1.2-23.el7
qemu-kvm-rhev-debuginfo
Red Hat:enterprise_linux:7::hypervisor
From an advisory covering 4 CVEs
before 10:2.1.2-23.el7
10:2.1.2-23.el7
qemu-kvm-tools-rhev
Red Hat:enterprise_linux:7::hypervisor
From an advisory covering 4 CVEs
before 10:2.1.2-23.el7
10:2.1.2-23.el7
qemu
SUSE:Linux Enterprise Desktop 12
From an advisory covering 2 CVEs
before 2.0.2-42.1
2.0.2-42.1
qemu
SUSE:Linux Enterprise Server 12
From an advisory covering 2 CVEs
before 2.0.2-42.1
2.0.2-42.1
qemu
SUSE:Linux Enterprise Server for SAP Applications 12
From an advisory covering 2 CVEs
before 2.0.2-42.1
2.0.2-42.1
qemu
Ubuntu:14.04:LTS
before 2.0.0+dfsg-2ubuntu1.9, plus listed versions
1.5.0+dfsg-3ubuntu51.5.0+dfsg-3ubuntu61.6.0+dfsg-2ubuntu11.6.0+dfsg-2ubuntu21.6.0+dfsg-2ubuntu3
Show 29 moreShow less
1.6.0+dfsg-2ubuntu41.7.0+dfsg-2ubuntu11.7.0+dfsg-2ubuntu21.7.0+dfsg-2ubuntu31.7.0+dfsg-2ubuntu41.7.0+dfsg-2ubuntu51.7.0+dfsg-2ubuntu71.7.0+dfsg-2ubuntu81.7.0+dfsg-2ubuntu91.7.0+dfsg-3ubuntu1~ppa11.7.0+dfsg-3ubuntu11.7.0+dfsg-3ubuntu21.7.0+dfsg-3ubuntu31.7.0+dfsg-3ubuntu41.7.0+dfsg-3ubuntu51.7.0+dfsg-3ubuntu61.7.0+dfsg-3ubuntu72.0.0~rc1+dfsg-0ubuntu12.0.0~rc1+dfsg-0ubuntu22.0.0~rc1+dfsg-0ubuntu32.0.0~rc1+dfsg-0ubuntu3.12.0.0+dfsg-2ubuntu12.0.0+dfsg-2ubuntu1.12.0.0+dfsg-2ubuntu1.22.0.0+dfsg-2ubuntu1.32.0.0+dfsg-2ubuntu1.52.0.0+dfsg-2ubuntu1.62.0.0+dfsg-2ubuntu1.72.0.0+dfsg-2ubuntu1.8
2.0.0+dfsg-2ubuntu1.9
qemu
Ubuntu:14.04:LTS
From an advisory covering 2 CVEs
before 2.0.0+dfsg-2ubuntu1.9, plus listed versions
1.5.0+dfsg-3ubuntu51.5.0+dfsg-3ubuntu61.6.0+dfsg-2ubuntu11.6.0+dfsg-2ubuntu21.6.0+dfsg-2ubuntu3
Show 29 moreShow less
1.6.0+dfsg-2ubuntu41.7.0+dfsg-2ubuntu11.7.0+dfsg-2ubuntu21.7.0+dfsg-2ubuntu31.7.0+dfsg-2ubuntu41.7.0+dfsg-2ubuntu51.7.0+dfsg-2ubuntu71.7.0+dfsg-2ubuntu81.7.0+dfsg-2ubuntu91.7.0+dfsg-3ubuntu1~ppa11.7.0+dfsg-3ubuntu11.7.0+dfsg-3ubuntu21.7.0+dfsg-3ubuntu31.7.0+dfsg-3ubuntu41.7.0+dfsg-3ubuntu51.7.0+dfsg-3ubuntu61.7.0+dfsg-3ubuntu72.0.0~rc1+dfsg-0ubuntu12.0.0~rc1+dfsg-0ubuntu22.0.0~rc1+dfsg-0ubuntu32.0.0~rc1+dfsg-0ubuntu3.12.0.0+dfsg-2ubuntu12.0.0+dfsg-2ubuntu1.12.0.0+dfsg-2ubuntu1.22.0.0+dfsg-2ubuntu1.32.0.0+dfsg-2ubuntu1.52.0.0+dfsg-2ubuntu1.62.0.0+dfsg-2ubuntu1.72.0.0+dfsg-2ubuntu1.8
2.0.0+dfsg-2ubuntu1.9

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2014-7840 is a high vulnerability (CVSS 7.5) in Qemu, published November 14, 2014. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.12%, the 90th percentile. Fixed in qemu 2.1+dfsg-8.

References

Show 194 moreShow less
This page doesn't list everything

Left out here: 24 references. The JSON record has them.

MoveEnter Open