diff options
author | Yogita Urade <yogita.urade@windriver.com> | 2024-01-18 05:52:29 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-21 12:27:12 +0000 |
commit | fcc39f3e04c66e4d698edad7887dc01f85f86979 (patch) | |
tree | e5fdfe3b827d95bbfd3cbbebceb57e0cf44d348c /meta/recipes-multimedia/libtiff | |
parent | 97fd704adcfcad439c5e4af390916434da07da98 (diff) | |
download | poky-fcc39f3e04c66e4d698edad7887dc01f85f86979.tar.gz |
tiff: fix CVE-2023-6228
CVE-2023-6228:
An issue was found in the tiffcp utility distributed by the
libtiff package where a crafted TIFF file on processing may
cause a heap-based buffer overflow leads to an application
crash.
References:
https://nvd.nist.gov/vuln/detail/CVE-2023-6228
https://gitlab.com/libtiff/libtiff/-/issues/606
(From OE-Core rev: 55735e0d75820d59e569a630679f9ac403c7fdbe)
Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/libtiff')
-rw-r--r-- | meta/recipes-multimedia/libtiff/tiff/CVE-2023-6228.patch | 31 | ||||
-rw-r--r-- | meta/recipes-multimedia/libtiff/tiff_4.6.0.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libtiff/tiff/CVE-2023-6228.patch b/meta/recipes-multimedia/libtiff/tiff/CVE-2023-6228.patch new file mode 100644 index 0000000000..2020508fdf --- /dev/null +++ b/meta/recipes-multimedia/libtiff/tiff/CVE-2023-6228.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 1e7d217a323eac701b134afc4ae39b6bdfdbc96a Mon Sep 17 00:00:00 2001 | ||
2 | From: Su_Laus <sulau@freenet.de> | ||
3 | Date: Wed, 17 Jan 2024 06:57:08 +0000 | ||
4 | Subject: [PATCH] codec of input image is available, independently from codec | ||
5 | check of output image and return with error if not. | ||
6 | |||
7 | Fixes #606. | ||
8 | |||
9 | CVE: CVE-2023-6228 | ||
10 | Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/commit/1e7d217a323eac701b134afc4ae39b6bdfdbc96a] | ||
11 | |||
12 | Signed-off-by: Yogita Urade <yogita.urade@windriver.com> | ||
13 | --- | ||
14 | tools/tiffcp.c | 2 ++ | ||
15 | 1 file changed, 2 insertions(+) | ||
16 | |||
17 | diff --git a/tools/tiffcp.c b/tools/tiffcp.c | ||
18 | index aff0626..a4f7f6b 100644 | ||
19 | --- a/tools/tiffcp.c | ||
20 | +++ b/tools/tiffcp.c | ||
21 | @@ -846,6 +846,8 @@ static int tiffcp(TIFF *in, TIFF *out) | ||
22 | if (!TIFFIsCODECConfigured(compression)) | ||
23 | return FALSE; | ||
24 | TIFFGetFieldDefaulted(in, TIFFTAG_COMPRESSION, &input_compression); | ||
25 | + if (!TIFFIsCODECConfigured(input_compression)) | ||
26 | + return FALSE; | ||
27 | TIFFGetFieldDefaulted(in, TIFFTAG_PHOTOMETRIC, &input_photometric); | ||
28 | if (input_compression == COMPRESSION_JPEG) | ||
29 | { | ||
30 | -- | ||
31 | 2.40.0 | ||
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.6.0.bb b/meta/recipes-multimedia/libtiff/tiff_4.6.0.bb index 4c472f8ef6..eb8a096f19 100644 --- a/meta/recipes-multimedia/libtiff/tiff_4.6.0.bb +++ b/meta/recipes-multimedia/libtiff/tiff_4.6.0.bb | |||
@@ -12,6 +12,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \ | |||
12 | file://CVE-2023-6277-At-image-reading-compare-data-size-of-some-tags-data.patch \ | 12 | file://CVE-2023-6277-At-image-reading-compare-data-size-of-some-tags-data.patch \ |
13 | file://CVE-2023-6277-At-image-reading-compare-data-size-of-some-tags-data-2.patch \ | 13 | file://CVE-2023-6277-At-image-reading-compare-data-size-of-some-tags-data-2.patch \ |
14 | file://CVE-2023-6277-Apply-1-suggestion-s-to-1-file-s.patch \ | 14 | file://CVE-2023-6277-Apply-1-suggestion-s-to-1-file-s.patch \ |
15 | file://CVE-2023-6228.patch \ | ||
15 | " | 16 | " |
16 | 17 | ||
17 | SRC_URI[sha256sum] = "88b3979e6d5c7e32b50d7ec72fb15af724f6ab2cbf7e10880c360a77e4b5d99a" | 18 | SRC_URI[sha256sum] = "88b3979e6d5c7e32b50d7ec72fb15af724f6ab2cbf7e10880c360a77e4b5d99a" |