]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/extra/0012-audio-release-capture-buffers.patch
add CVE fixes
[pve-qemu.git] / debian / patches / extra / 0012-audio-release-capture-buffers.patch
CommitLineData
e74c0f31 1From 74f9fd9420fadd64a42ee8de780dc6de61864ea8 Mon Sep 17 00:00:00 2001
90a6d957
WB
2From: Gerd Hoffmann <kraxel@redhat.com>
3Date: Fri, 28 Apr 2017 09:56:12 +0200
e74c0f31 4Subject: [PATCH 12/23] audio: release capture buffers
90a6d957
WB
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
13Cc: P J P <ppandit@redhat.com>
14Cc: Huawei PSIRT <PSIRT@huawei.com>
15Reported-by: "Jiangxin (hunter, SCC)" <jiangxin1@huawei.com>
16Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
17Reviewed-by: Prasad J Pandit <pjp@fedoraproject.org>
18Message-id: 20170428075612.9997-1-kraxel@redhat.com
19---
20 audio/audio.c | 2 ++
21 1 file changed, 2 insertions(+)
22
23diff --git a/audio/audio.c b/audio/audio.c
24index c8898d8422..beafed209b 100644
25--- a/audio/audio.c
26+++ b/audio/audio.c
27@@ -2028,6 +2028,8 @@ void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque)
28 sw = sw1;
29 }
30 QLIST_REMOVE (cap, entries);
31+ g_free (cap->hw.mix_buf);
32+ g_free (cap->buf);
33 g_free (cap);
34 }
35 return;
36--
372.11.0
38