mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
libtiff: Fix for CVE-2023-6228
Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/commit/1e7d217a323eac701b134afc4ae39b6bdfdbc96a] (From OE-Core rev: ff66998ef81dbc35465e30eec96ee9be51f5da80) Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
854aafaea4
commit
d9d1a730ae
@@ -0,0 +1,30 @@
|
|||||||
|
From 1e7d217a323eac701b134afc4ae39b6bdfdbc96a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Su_Laus <sulau@freenet.de>
|
||||||
|
Date: Sat, 9 Sep 2023 15:45:47 +0200
|
||||||
|
Subject: [PATCH] Check also if codec of input image is available,
|
||||||
|
independently from codec check of output image and return with error if not.
|
||||||
|
Fixes #606.
|
||||||
|
|
||||||
|
Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/commit/1e7d217a323eac701b134afc4ae39b6bdfdbc96a]
|
||||||
|
CVE: CVE-2023-6228
|
||||||
|
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
|
||||||
|
---
|
||||||
|
tools/tiffcp.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tools/tiffcp.c b/tools/tiffcp.c
|
||||||
|
index 007bd05..d2f7b66 100644
|
||||||
|
--- a/tools/tiffcp.c
|
||||||
|
+++ b/tools/tiffcp.c
|
||||||
|
@@ -628,6 +628,8 @@ tiffcp(TIFF* in, TIFF* out)
|
||||||
|
else
|
||||||
|
CopyField(TIFFTAG_COMPRESSION, compression);
|
||||||
|
TIFFGetFieldDefaulted(in, TIFFTAG_COMPRESSION, &input_compression);
|
||||||
|
+ if (!TIFFIsCODECConfigured(input_compression))
|
||||||
|
+ return FALSE;
|
||||||
|
TIFFGetFieldDefaulted(in, TIFFTAG_PHOTOMETRIC, &input_photometric);
|
||||||
|
if (input_compression == COMPRESSION_JPEG) {
|
||||||
|
/* Force conversion to RGB */
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
@@ -48,6 +48,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \
|
|||||||
file://CVE-2023-40745.patch \
|
file://CVE-2023-40745.patch \
|
||||||
file://CVE-2023-41175.patch \
|
file://CVE-2023-41175.patch \
|
||||||
file://CVE-2022-40090.patch \
|
file://CVE-2022-40090.patch \
|
||||||
|
file://CVE-2023-6228.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[md5sum] = "2165e7aba557463acc0664e71a3ed424"
|
SRC_URI[md5sum] = "2165e7aba557463acc0664e71a3ed424"
|
||||||
SRC_URI[sha256sum] = "5d29f32517dadb6dbcd1255ea5bbc93a2b54b94fbf83653b4d65c7d6775b8634"
|
SRC_URI[sha256sum] = "5d29f32517dadb6dbcd1255ea5bbc93a2b54b94fbf83653b4d65c7d6775b8634"
|
||||||
|
|||||||
Reference in New Issue
Block a user