summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/vmware-vga-CVE-2014-3689.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/vmware-vga-CVE-2014-3689.patch')
-rw-r--r--meta/recipes-devtools/qemu/qemu/vmware-vga-CVE-2014-3689.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/vmware-vga-CVE-2014-3689.patch b/meta/recipes-devtools/qemu/qemu/vmware-vga-CVE-2014-3689.patch
new file mode 100644
index 0000000000..74cf8465ce
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu/vmware-vga-CVE-2014-3689.patch
@@ -0,0 +1,41 @@
1From 56b6131a153668bbb77e1b9b7e86379c41f8fdf9 Mon Sep 17 00:00:00 2001
2From: Gerd Hoffmann <kraxel@redhat.com>
3Date: Mon, 6 Oct 2014 11:42:34 +0200
4Subject: [PATCH] vmware-vga: CVE-2014-3689: turn off hw accel
5
6Quick & easy stopgap for CVE-2014-3689: We just compile out the
7hardware acceleration functions which lack sanity checks. Thankfully
8we have capability bits for them (SVGA_CAP_RECT_COPY and
9SVGA_CAP_RECT_FILL), so guests should deal just fine, in theory.
10
11Subsequent patches will add the missing checks and re-enable the
12hardware acceleration emulation.
13
14Upstream-Status: Backport
15
16Cc: qemu-stable@nongnu.org
17Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
18Reviewed-by: Don Koch <dkoch@verizon.com>
19Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
20---
21 hw/display/vmware_vga.c | 2 ++
22 1 file changed, 2 insertions(+)
23
24diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
25index a6a8cdc..113ce1f 100644
26--- a/hw/display/vmware_vga.c
27+++ b/hw/display/vmware_vga.c
28@@ -27,8 +27,10 @@
29 #include "hw/pci/pci.h"
30
31 #undef VERBOSE
32+#if 0
33 #define HW_RECT_ACCEL
34 #define HW_FILL_ACCEL
35+#endif
36 #define HW_MOUSE_ACCEL
37
38 #include "vga_int.h"
39--
401.9.1
41