diff options
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/0001-vhost-user-gpu-fix-memory-disclosure-in-virgl_cmd_ge.patch')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu/0001-vhost-user-gpu-fix-memory-disclosure-in-virgl_cmd_ge.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/0001-vhost-user-gpu-fix-memory-disclosure-in-virgl_cmd_ge.patch b/meta/recipes-devtools/qemu/qemu/0001-vhost-user-gpu-fix-memory-disclosure-in-virgl_cmd_ge.patch deleted file mode 100644 index 981c237292..0000000000 --- a/meta/recipes-devtools/qemu/qemu/0001-vhost-user-gpu-fix-memory-disclosure-in-virgl_cmd_ge.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | CVE: CVE-2021-3545 | ||
2 | Upstream-Status: Backport | ||
3 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
4 | |||
5 | From 121841b25d72d13f8cad554363138c360f1250ea Mon Sep 17 00:00:00 2001 | ||
6 | From: Li Qiang <liq3ea@163.com> | ||
7 | Date: Sat, 15 May 2021 20:03:56 -0700 | ||
8 | Subject: [PATCH 1/7] vhost-user-gpu: fix memory disclosure in | ||
9 | virgl_cmd_get_capset_info (CVE-2021-3545) | ||
10 | MIME-Version: 1.0 | ||
11 | Content-Type: text/plain; charset=UTF-8 | ||
12 | Content-Transfer-Encoding: 8bit | ||
13 | |||
14 | Otherwise some of the 'resp' will be leaked to guest. | ||
15 | |||
16 | Fixes: CVE-2021-3545 | ||
17 | Reported-by: Li Qiang <liq3ea@163.com> | ||
18 | virtio-gpu fix: 42a8dadc74 ("virtio-gpu: fix information leak | ||
19 | in getting capset info dispatch") | ||
20 | |||
21 | Signed-off-by: Li Qiang <liq3ea@163.com> | ||
22 | Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> | ||
23 | Message-Id: <20210516030403.107723-2-liq3ea@163.com> | ||
24 | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> | ||
25 | --- | ||
26 | contrib/vhost-user-gpu/virgl.c | 1 + | ||
27 | 1 file changed, 1 insertion(+) | ||
28 | |||
29 | diff --git a/contrib/vhost-user-gpu/virgl.c b/contrib/vhost-user-gpu/virgl.c | ||
30 | index 9e6660c7ab..6a332d601f 100644 | ||
31 | --- a/contrib/vhost-user-gpu/virgl.c | ||
32 | +++ b/contrib/vhost-user-gpu/virgl.c | ||
33 | @@ -128,6 +128,7 @@ virgl_cmd_get_capset_info(VuGpu *g, | ||
34 | |||
35 | VUGPU_FILL_CMD(info); | ||
36 | |||
37 | + memset(&resp, 0, sizeof(resp)); | ||
38 | if (info.capset_index == 0) { | ||
39 | resp.capset_id = VIRTIO_GPU_CAPSET_VIRGL; | ||
40 | virgl_renderer_get_cap_set(resp.capset_id, | ||
41 | -- | ||
42 | 2.25.1 | ||
43 | |||