diff options
author | Matthias Maier <tamiko@gentoo.org> | 2017-02-12 22:50:18 -0600 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2017-02-12 22:50:18 -0600 |
commit | 69f166f734e87c4d5b025e9f2bbfcfba3d7cddcb (patch) | |
tree | 16c003590b006b24f363a314354d9c30d73a7648 /app-emulation/qemu/files/qemu-2.8.0-CVE-2017-5578.patch | |
parent | app-emulation/qemu: drop old versions 2.7.0, 2.7.1 (diff) | |
download | gentoo-69f166f734e87c4d5b025e9f2bbfcfba3d7cddcb.tar.gz gentoo-69f166f734e87c4d5b025e9f2bbfcfba3d7cddcb.tar.bz2 gentoo-69f166f734e87c4d5b025e9f2bbfcfba3d7cddcb.zip |
app-emulation/qemu: fix various security issues, bug #608728 and others
This commit applies upstream patches to 2.8.0 for the following CVEs
CVE-2016-10155 #606720
CVE-2017-2615 #608034
CVE-2017-5525 #606264
CVE-2017-5552 #606722
CVE-2017-5578 #607000
CVE-2017-5579 #607100
CVE-2017-5667 #607766
CVE-2017-5856 #608036
CVE-2017-5857 #608038
CVE-2017-5898 #608520
CVE-2017-5931 #608728
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-emulation/qemu/files/qemu-2.8.0-CVE-2017-5578.patch')
-rw-r--r-- | app-emulation/qemu/files/qemu-2.8.0-CVE-2017-5578.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app-emulation/qemu/files/qemu-2.8.0-CVE-2017-5578.patch b/app-emulation/qemu/files/qemu-2.8.0-CVE-2017-5578.patch new file mode 100644 index 000000000000..f93d1e7f9e9d --- /dev/null +++ b/app-emulation/qemu/files/qemu-2.8.0-CVE-2017-5578.patch @@ -0,0 +1,35 @@ +From 204f01b30975923c64006f8067f0937b91eea68b Mon Sep 17 00:00:00 2001 +From: Li Qiang <liq3ea@gmail.com> +Date: Thu, 29 Dec 2016 04:28:41 -0500 +Subject: [PATCH] virtio-gpu: fix memory leak in resource attach backing + +In the resource attach backing function, everytime it will +allocate 'res->iov' thus can leading a memory leak. This +patch avoid this. + +Signed-off-by: Li Qiang <liq3ea@gmail.com> +Message-id: 1483003721-65360-1-git-send-email-liq3ea@gmail.com +Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> +--- + hw/display/virtio-gpu.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c +index 6a26258..ca88cf4 100644 +--- a/hw/display/virtio-gpu.c ++++ b/hw/display/virtio-gpu.c +@@ -714,6 +714,11 @@ virtio_gpu_resource_attach_backing(VirtIOGPU *g, + return; + } + ++ if (res->iov) { ++ cmd->error = VIRTIO_GPU_RESP_ERR_UNSPEC; ++ return; ++ } ++ + ret = virtio_gpu_create_mapping_iov(&ab, cmd, &res->addrs, &res->iov); + if (ret != 0) { + cmd->error = VIRTIO_GPU_RESP_ERR_UNSPEC; +-- +2.10.2 + |