summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-multimedia/flac/files/CVE-2017-6888.patch31
-rw-r--r--meta/recipes-multimedia/flac/flac_1.3.2.bb3
2 files changed, 33 insertions, 1 deletions
diff --git a/meta/recipes-multimedia/flac/files/CVE-2017-6888.patch b/meta/recipes-multimedia/flac/files/CVE-2017-6888.patch
new file mode 100644
index 0000000000..389ab962f0
--- /dev/null
+++ b/meta/recipes-multimedia/flac/files/CVE-2017-6888.patch
@@ -0,0 +1,31 @@
1From 4f47b63e9c971e6391590caf00a0f2a5ed612e67 Mon Sep 17 00:00:00 2001
2From: Erik de Castro Lopo <erikd@mega-nerd.com>
3Date: Sat, 8 Apr 2017 18:34:49 +1000
4Subject: [PATCH] stream_decoder.c: Fix a memory leak
5
6Leak reported by Secunia Research.
7CVE: CVE-2017-6888
8Upstream-Status: Backport [https://git.xiph.org/?p=flac.git;a=commitdiff;h=4f47b63e9c971e6391590caf00a0f2a5ed612e67]
9
10Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
11---
12 src/libFLAC/stream_decoder.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c
16index 14d5fe7f..a5527511 100644
17--- a/src/libFLAC/stream_decoder.c
18+++ b/src/libFLAC/stream_decoder.c
19@@ -1753,6 +1753,9 @@ FLAC__bool read_metadata_vorbiscomment_(FLAC__StreamDecoder *decoder, FLAC__Stre
20 }
21 memset (obj->comments[i].entry, 0, obj->comments[i].length) ;
22 if (!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, obj->comments[i].entry, obj->comments[i].length)) {
23+ /* Current i-th entry is bad, so we delete it. */
24+ free (obj->comments[i].entry) ;
25+ obj->comments[i].entry = NULL ;
26 obj->num_comments = i;
27 goto skip;
28 }
29--
302.13.3
31
diff --git a/meta/recipes-multimedia/flac/flac_1.3.2.bb b/meta/recipes-multimedia/flac/flac_1.3.2.bb
index 8315ab5a2f..028a429bb3 100644
--- a/meta/recipes-multimedia/flac/flac_1.3.2.bb
+++ b/meta/recipes-multimedia/flac/flac_1.3.2.bb
@@ -14,7 +14,8 @@ LIC_FILES_CHKSUM = "file://COPYING.FDL;md5=ad1419ecc56e060eccf8184a87c4285f \
14 file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48" 14 file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48"
15DEPENDS = "libogg" 15DEPENDS = "libogg"
16 16
17SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz" 17SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz \
18 file://CVE-2017-6888.patch"
18 19
19SRC_URI[md5sum] = "454f1bfa3f93cc708098d7890d0499bd" 20SRC_URI[md5sum] = "454f1bfa3f93cc708098d7890d0499bd"
20SRC_URI[sha256sum] = "91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f" 21SRC_URI[sha256sum] = "91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f"