summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/0002-vhost-user-gpu-fix-resource-leak-in-vg_resource_crea.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/0002-vhost-user-gpu-fix-resource-leak-in-vg_resource_crea.patch')
-rw-r--r--meta/recipes-devtools/qemu/qemu/0002-vhost-user-gpu-fix-resource-leak-in-vg_resource_crea.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/0002-vhost-user-gpu-fix-resource-leak-in-vg_resource_crea.patch b/meta/recipes-devtools/qemu/qemu/0002-vhost-user-gpu-fix-resource-leak-in-vg_resource_crea.patch
deleted file mode 100644
index a9aee47e39..0000000000
--- a/meta/recipes-devtools/qemu/qemu/0002-vhost-user-gpu-fix-resource-leak-in-vg_resource_crea.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1CVE: CVE-2021-3544
2Upstream-Status: Backport
3Signed-off-by: Ross Burton <ross.burton@arm.com>
4
5From 86dd8fac2acc366930a5dc08d3fb1b1e816f4e1e Mon Sep 17 00:00:00 2001
6From: Li Qiang <liq3ea@163.com>
7Date: Sat, 15 May 2021 20:03:57 -0700
8Subject: [PATCH 2/7] vhost-user-gpu: fix resource leak in
9 'vg_resource_create_2d' (CVE-2021-3544)
10MIME-Version: 1.0
11Content-Type: text/plain; charset=UTF-8
12Content-Transfer-Encoding: 8bit
13
14Call 'vugbm_buffer_destroy' in error path to avoid resource leak.
15
16Fixes: CVE-2021-3544
17Reported-by: Li Qiang <liq3ea@163.com>
18Reviewed-by: Prasad J Pandit <pjp@fedoraproject.org>
19Signed-off-by: Li Qiang <liq3ea@163.com>
20Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
21Message-Id: <20210516030403.107723-3-liq3ea@163.com>
22Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
23---
24 contrib/vhost-user-gpu/vhost-user-gpu.c | 1 +
25 1 file changed, 1 insertion(+)
26
27diff --git a/contrib/vhost-user-gpu/vhost-user-gpu.c b/contrib/vhost-user-gpu/vhost-user-gpu.c
28index f73f292c9f..b5e153d0d6 100644
29--- a/contrib/vhost-user-gpu/vhost-user-gpu.c
30+++ b/contrib/vhost-user-gpu/vhost-user-gpu.c
31@@ -349,6 +349,7 @@ vg_resource_create_2d(VuGpu *g,
32 g_critical("%s: resource creation failed %d %d %d",
33 __func__, c2d.resource_id, c2d.width, c2d.height);
34 g_free(res);
35+ vugbm_buffer_destroy(&res->buffer);
36 cmd->error = VIRTIO_GPU_RESP_ERR_OUT_OF_MEMORY;
37 return;
38 }
39--
402.25.1
41