summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r--meta/recipes-multimedia/libtiff/files/CVE-2016-3632.patch34
-rw-r--r--meta/recipes-multimedia/libtiff/tiff_4.0.6.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libtiff/files/CVE-2016-3632.patch b/meta/recipes-multimedia/libtiff/files/CVE-2016-3632.patch
new file mode 100644
index 0000000000..a8392509e6
--- /dev/null
+++ b/meta/recipes-multimedia/libtiff/files/CVE-2016-3632.patch
@@ -0,0 +1,34 @@
1From d3f9829a37661749b200760ad6525f77cf77d77a Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
3Date: Mon, 11 Jul 2016 16:04:34 +0200
4Subject: [PATCH 4/8] Fix CVE-2016-3632
5
6CVE-2016-3632 libtiff: The _TIFFVGetField function in tif_dirinfo.c in
7LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service
8(out-of-bounds write) or execute arbitrary code via a crafted TIFF image.
9
10CVE: CVE-2016-3632
11Upstream-Status: Backport [RedHat RHEL7]
12
13Signed-off-by: Yi Zhao <yi.zhao@windirver.com>
14---
15 tools/thumbnail.c | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18diff --git a/tools/thumbnail.c b/tools/thumbnail.c
19index fd1cba5..75e7009 100644
20--- a/tools/thumbnail.c
21+++ b/tools/thumbnail.c
22@@ -253,7 +253,8 @@ static struct cpTag {
23 { TIFFTAG_WHITEPOINT, 2, TIFF_RATIONAL },
24 { TIFFTAG_PRIMARYCHROMATICITIES, (uint16) -1,TIFF_RATIONAL },
25 { TIFFTAG_HALFTONEHINTS, 2, TIFF_SHORT },
26- { TIFFTAG_BADFAXLINES, 1, TIFF_LONG },
27+ // disable BADFAXLINES, CVE-2016-3632
28+ //{ TIFFTAG_BADFAXLINES, 1, TIFF_LONG },
29 { TIFFTAG_CLEANFAXDATA, 1, TIFF_SHORT },
30 { TIFFTAG_CONSECUTIVEBADFAXLINES, 1, TIFF_LONG },
31 { TIFFTAG_INKSET, 1, TIFF_SHORT },
32--
332.7.4
34
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.0.6.bb b/meta/recipes-multimedia/libtiff/tiff_4.0.6.bb
index edd560fa08..9b4aff3f28 100644
--- a/meta/recipes-multimedia/libtiff/tiff_4.0.6.bb
+++ b/meta/recipes-multimedia/libtiff/tiff_4.0.6.bb
@@ -16,6 +16,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \
16 file://CVE-2016-3623.patch \ 16 file://CVE-2016-3623.patch \
17 file://CVE-2016-3622.patch \ 17 file://CVE-2016-3622.patch \
18 file://CVE-2016-3658.patch \ 18 file://CVE-2016-3658.patch \
19 file://CVE-2016-3632.patch \
19 " 20 "
20 21
21SRC_URI[md5sum] = "d1d2e940dea0b5ad435f21f03d96dd72" 22SRC_URI[md5sum] = "d1d2e940dea0b5ad435f21f03d96dd72"