diff options
| author | Yogita Urade <yogita.urade@windriver.com> | 2024-01-18 10:54:02 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-01-24 04:04:55 -1000 |
| commit | 410d7bf8cb71ec379c88b60a58cc8f2c1b4091a5 (patch) | |
| tree | 3b06233248c027d3b40d6da1339d8a4a96ad923e /meta/recipes-multimedia/libtiff | |
| parent | ce477b4d6e1fce61b568cd091563d43c1b40bb18 (diff) | |
| download | poky-410d7bf8cb71ec379c88b60a58cc8f2c1b4091a5.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: 0730806ae39093b05ce943df1f9f5d0a25a8a673)
Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
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.3.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..f15cc96e19 --- /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:38:24 +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 34b6ef2..17c6524 100644 | ||
| 19 | --- a/tools/tiffcp.c | ||
| 20 | +++ b/tools/tiffcp.c | ||
| 21 | @@ -724,6 +724,8 @@ tiffcp(TIFF* in, TIFF* out) | ||
| 22 | else | ||
| 23 | CopyField(TIFFTAG_COMPRESSION, compression); | ||
| 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 | /* Force conversion to RGB */ | ||
| 30 | -- | ||
| 31 | 2.40.0 | ||
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb b/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb index 11e3818c69..d284100ab2 100644 --- a/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb +++ b/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb | |||
| @@ -47,6 +47,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \ | |||
| 47 | file://CVE-2023-1916.patch \ | 47 | file://CVE-2023-1916.patch \ |
| 48 | file://CVE-2023-40745.patch \ | 48 | file://CVE-2023-40745.patch \ |
| 49 | file://CVE-2023-41175.patch \ | 49 | file://CVE-2023-41175.patch \ |
| 50 | file://CVE-2023-6228.patch \ | ||
| 50 | " | 51 | " |
| 51 | 52 | ||
| 52 | SRC_URI[sha256sum] = "0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8" | 53 | SRC_URI[sha256sum] = "0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8" |
