diff options
| author | Rajkumar Veer <rveer@mvista.com> | 2017-11-03 21:45:04 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-05 22:39:48 +0000 |
| commit | 46ee3948653d143bb61ba2cf30fc2cce6dbaca31 (patch) | |
| tree | fdc8de41f8d969c9d11e6d995cedd12e8e04fc45 | |
| parent | ca16811eedc72e054179430da790e831b3ae4b3f (diff) | |
| download | poky-46ee3948653d143bb61ba2cf30fc2cce6dbaca31.tar.gz | |
tiff: Security fix CVE-2016-10268
(From OE-Core rev: a384e06b6ac12541b9928ecbc5834ef1d505ac0f)
Signed-off-by: Rajkumar Veer <rveer@mvista.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-multimedia/libtiff/files/CVE-2016-10268.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-multimedia/libtiff/tiff_4.0.7.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libtiff/files/CVE-2016-10268.patch b/meta/recipes-multimedia/libtiff/files/CVE-2016-10268.patch new file mode 100644 index 0000000000..03b982a1d9 --- /dev/null +++ b/meta/recipes-multimedia/libtiff/files/CVE-2016-10268.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 5397a417e61258c69209904e652a1f409ec3b9df Mon Sep 17 00:00:00 2001 | ||
| 2 | From: erouault <erouault> | ||
| 3 | Date: Fri, 2 Dec 2016 22:13:32 +0000 | ||
| 4 | Subject: [PATCH] * tools/tiffcp.c: avoid uint32 underflow in cpDecodedStrips | ||
| 5 | that can cause various issues, such as buffer overflows in the library. | ||
| 6 | Reported by Agostino Sarubbo. Fixes | ||
| 7 | http://bugzilla.maptools.org/show_bug.cgi?id=2598 | ||
| 8 | |||
| 9 | Upstream-Status: Backport | ||
| 10 | CVE: CVE-2016-10268 | ||
| 11 | Signed-off-by: Rajkumar Veer <rveer@mvista.com> | ||
| 12 | |||
| 13 | --- | ||
| 14 | ChangeLog | 7 +++++++ | ||
| 15 | tools/tiffcp.c | 2 +- | ||
| 16 | 2 files changed, 8 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | Index: tiff-4.0.7/tools/tiffcp.c | ||
| 19 | =================================================================== | ||
| 20 | --- tiff-4.0.7.orig/tools/tiffcp.c | ||
| 21 | +++ tiff-4.0.7/tools/tiffcp.c | ||
| 22 | @@ -985,7 +985,7 @@ DECLAREcpFunc(cpDecodedStrips) | ||
| 23 | tstrip_t s, ns = TIFFNumberOfStrips(in); | ||
| 24 | uint32 row = 0; | ||
| 25 | _TIFFmemset(buf, 0, stripsize); | ||
| 26 | - for (s = 0; s < ns; s++) { | ||
| 27 | + for (s = 0; s < ns && row < imagelength; s++) { | ||
| 28 | tsize_t cc = (row + rowsperstrip > imagelength) ? | ||
| 29 | TIFFVStripSize(in, imagelength - row) : stripsize; | ||
| 30 | if (TIFFReadEncodedStrip(in, s, buf, cc) < 0 | ||
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb b/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb index 5d816fc7ae..9432074d5a 100644 --- a/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb +++ b/meta/recipes-multimedia/libtiff/tiff_4.0.7.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \ | |||
| 13 | file://CVE-2017-11335.patch \ | 13 | file://CVE-2017-11335.patch \ |
| 14 | file://CVE-2016-10271.patch \ | 14 | file://CVE-2016-10271.patch \ |
| 15 | file://CVE-2016-10093.patch \ | 15 | file://CVE-2016-10093.patch \ |
| 16 | file://CVE-2016-10268.patch \ | ||
| 16 | " | 17 | " |
| 17 | 18 | ||
| 18 | SRC_URI[md5sum] = "77ae928d2c6b7fb46a21c3a29325157b" | 19 | SRC_URI[md5sum] = "77ae928d2c6b7fb46a21c3a29325157b" |
