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.
Statement: This issue affects the qemu-kvm packages as shipped with Red Hat Enterprise Linux 5, 6 and 7. Future updates for the respective releases may address this issue. Red Hat Enterprise Linux 5 is now in Production 3 Phase of the support and maintenance life cycle. This has been rated as having Moderate security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.
Upstream patch submission -- http://thread.gmane.org/gmane.comp.emulators.qemu/306117
Created qemu tracking bugs for this issue: Affects: fedora-all [bug 1163080]
Upstream commit: http://git.qemu.org/?p=qemu.git;a=commit;h=0be839a2701369f669532ea5884c15bead1c6e08
qemu-2.1.2-7.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
qemu-1.6.2-12.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2015:0349 https://rhn.redhat.com/errata/RHSA-2015-0349.html
This issue has been addressed in the following products: RHEV-H and Agents for RHEL-7 Via RHSA-2015:0624 https://rhn.redhat.com/errata/RHSA-2015-0624.html