summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/qemu/qemu/CVE-2017-8309.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/qemu/qemu/CVE-2017-8309.patch')
-rw-r--r--recipes-devtools/qemu/qemu/CVE-2017-8309.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu/CVE-2017-8309.patch b/recipes-devtools/qemu/qemu/CVE-2017-8309.patch
new file mode 100644
index 0000000..812e64b
--- /dev/null
+++ b/recipes-devtools/qemu/qemu/CVE-2017-8309.patch
@@ -0,0 +1,42 @@
1From 3268a845f41253fb55852a8429c32b50f36f349a Mon Sep 17 00:00:00 2001
2From: Gerd Hoffmann <kraxel@redhat.com>
3Date: Fri, 28 Apr 2017 09:56:12 +0200
4Subject: [PATCH] audio: release capture buffers
5
6AUD_add_capture() allocates two buffers which are never released.
7Add the missing calls to AUD_del_capture().
8
9Impact: Allows vnc clients to exhaust host memory by repeatedly
10starting and stopping audio capture.
11
12Fixes: CVE-2017-8309
13
14CVE-2017-8309
15Upstream-Status: Backport [backport from master, v2.10.0-rc0~214^2~27]
16
17Cc: P J P <ppandit@redhat.com>
18Cc: Huawei PSIRT <PSIRT@huawei.com>
19Reported-by: "Jiangxin (hunter, SCC)" <jiangxin1@huawei.com>
20Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
21Reviewed-by: Prasad J Pandit <pjp@fedoraproject.org>
22Message-id: 20170428075612.9997-1-kraxel@redhat.com
23Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
24---
25 audio/audio.c | 2 ++
26 1 file changed, 2 insertions(+)
27
28diff --git a/audio/audio.c b/audio/audio.c
29index c8898d8..beafed2 100644
30--- a/audio/audio.c
31+++ b/audio/audio.c
32@@ -2028,6 +2028,8 @@ void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque)
33 sw = sw1;
34 }
35 QLIST_REMOVE (cap, entries);
36+ g_free (cap->hw.mix_buf);
37+ g_free (cap->buf);
38 g_free (cap);
39 }
40 return;
41--
421.9.1