CVE-2014-7840
published 2014-12-12CVE-2014-7840: 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…
PriorityP345high7.5CVSS 2.0
AVNACLAuNCPIPAP
EPSS
4.12%
89.7th percentile
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.
Affected
20 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | qemu | < qemu 2.1+dfsg-8 (bookworm) | qemu 2.1+dfsg-8 (bookworm) |
| qemu | qemu | <= 2.1.3 | — |
| qemu | qemu | >= 0 < 2.1+dfsg-8 | 2.1+dfsg-8 |
| qemu | qemu | >= 0 < 2.1+dfsg-8 | 2.1+dfsg-8 |
| qemu | qemu | >= 0 < 2.1+dfsg-8 | 2.1+dfsg-8 |
| qemu | qemu | >= 0 < 2.1+dfsg-8 | 2.1+dfsg-8 |
| qemu | qemu | >= 0 < 2.0.0+dfsg-2ubuntu1.9 | 2.0.0+dfsg-2ubuntu1.9 |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_eus | — | — |
| redhat | enterprise_linux_eus | — | — |
| redhat | enterprise_linux_eus | — | — |
| redhat | enterprise_linux_eus | — | — |
| redhat | enterprise_linux_eus | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_workstation | — | — |
| redhat | virtualization | — | — |
CVSS provenance
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
QEMU vulnerabilities
vendor_ubuntu·2014-12-11·CVSS 7.5
CVE-2014-7840 [HIGH] QEMU vulnerabilities
Title: QEMU vulnerabilities
Summary: Several security issues were fixed in QEMU.
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)
Instructions: After a standard system update you need to reboot your computer to make
all the necessary changes.
Red Hat
qemu: insufficient parameter validation during ram load
vendor_redhat·2014-11-12·CVSS 7.5
CVE-2014-7840 [HIGH] CWE-20 qemu: insufficient parameter validation during ram load
qemu: insufficient parameter validation during ram load
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.
It was found that certain values that were read when loading RAM during migration were not validated. 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.
Package: kvm (Red Hat Enterprise Linux 5) - Will not fix
Package: qemu-kvm (Red Hat Enterprise Linux 6) - Affected
Package: qemu-kvm-rhe
Debian
CVE-2014-7840: qemu - The host_from_stream_offset function in arch_init.c in QEMU, when loading RAM du...
vendor_debian·2014·CVSS 7.5
CVE-2014-7840 [HIGH] CVE-2014-7840: qemu - The host_from_stream_offset function in arch_init.c in QEMU, when loading RAM du...
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.
Scope: local
bookworm: resolved (fixed in 2.1+dfsg-8)
bullseye: resolved (fixed in 2.1+dfsg-8)
forky: resolved (fixed in 2.1+dfsg-8)
sid: resolved (fixed in 2.1+dfsg-8)
trixie: resolved (fixed in 2.1+dfsg-8)
GHSA
GHSA-m2wj-gq82-h93m: The host_from_stream_offset function in arch_init
ghsa_unreviewed·2022-05-13
CVE-2014-7840 [HIGH] CWE-20 GHSA-m2wj-gq82-h93m: The host_from_stream_offset function in arch_init
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.
OSV
CVE-2014-7840: The host_from_stream_offset function in arch_init
osv·2014-12-12·CVSS 7.5
CVE-2014-7840 [HIGH] CVE-2014-7840: The host_from_stream_offset function in arch_init
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.
OSV
qemu, qemu-kvm vulnerabilities
osv·2014-12-11·CVSS 7.5
CVE-2014-7840 [HIGH] qemu, qemu-kvm vulnerabilities
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)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2014-7840 qemu: insufficient parameter validation during ram load [fedora-all]
bugzilla·2014-11-12·CVSS 7.5
CVE-2014-7840 [HIGH] CVE-2014-7840 qemu: insufficient parameter validation during ram load [fedora-all]
CVE-2014-7840 qemu: insufficient parameter validation during ram load [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported version
Bugzilla
CVE-2014-7840 qemu: insufficient parameter validation during ram load
bugzilla·2014-11-12·CVSS 7.5
CVE-2014-7840 [HIGH] CVE-2014-7840 qemu: insufficient parameter validation during ram load
CVE-2014-7840 qemu: insufficient parameter validation during ram load
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.
Acknowledgements:
This issue was discovered by Michael S. Tsirkin of Red Hat.
Discussion:
Statement:
This issue affects the qemu-kvm packages as shipped with Red Hat Enterprise
Linux 5, 6 and 7. Future updates for the re
http://git.qemu.org/?p=qemu.git%3Ba=commit%3Bh=0be839a2701369f669532ea5884c15bead1c6e08http://rhn.redhat.com/errata/RHSA-2015-0349.htmlhttp://rhn.redhat.com/errata/RHSA-2015-0624.htmlhttp://thread.gmane.org/gmane.comp.emulators.qemu/306117https://bugzilla.redhat.com/show_bug.cgi?id=1163075https://exchange.xforce.ibmcloud.com/vulnerabilities/99194http://git.qemu.org/?p=qemu.git%3Ba=commit%3Bh=0be839a2701369f669532ea5884c15bead1c6e08http://rhn.redhat.com/errata/RHSA-2015-0349.htmlhttp://rhn.redhat.com/errata/RHSA-2015-0624.htmlhttp://thread.gmane.org/gmane.comp.emulators.qemu/306117https://bugzilla.redhat.com/show_bug.cgi?id=1163075https://exchange.xforce.ibmcloud.com/vulnerabilities/99194
2014-12-12
Published