diff options
| -rw-r--r-- | meta/recipes-multimedia/libtiff/tiff/CVE-2022-34526.patch | 29 | ||||
| -rw-r--r-- | meta/recipes-multimedia/libtiff/tiff_4.3.0.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libtiff/tiff/CVE-2022-34526.patch b/meta/recipes-multimedia/libtiff/tiff/CVE-2022-34526.patch new file mode 100644 index 0000000000..48ca56982f --- /dev/null +++ b/meta/recipes-multimedia/libtiff/tiff/CVE-2022-34526.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 3fc1fdda0068981340cc7ae136173731275e2c5e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hitendra Prajapati <hprajapati@mvista.com> | ||
| 3 | Date: Thu, 18 Aug 2022 10:46:30 +0530 | ||
| 4 | Subject: [PATCH] CVE-2022-34526 | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/commit/275735d0354e39c0ac1dc3c0db2120d6f31d1990] | ||
| 7 | CVE: CVE-2022-34526 | ||
| 8 | Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com> | ||
| 9 | --- | ||
| 10 | libtiff/tif_dirinfo.c | 3 +++ | ||
| 11 | 1 file changed, 3 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/libtiff/tif_dirinfo.c b/libtiff/tif_dirinfo.c | ||
| 14 | index 8565dfb..0f722a5 100644 | ||
| 15 | --- a/libtiff/tif_dirinfo.c | ||
| 16 | +++ b/libtiff/tif_dirinfo.c | ||
| 17 | @@ -1157,6 +1157,9 @@ _TIFFCheckFieldIsValidForCodec(TIFF *tif, ttag_t tag) | ||
| 18 | default: | ||
| 19 | return 1; | ||
| 20 | } | ||
| 21 | + if( !TIFFIsCODECConfigured(tif->tif_dir.td_compression) ) { | ||
| 22 | + return 0; | ||
| 23 | + } | ||
| 24 | /* Check if codec specific tags are allowed for the current | ||
| 25 | * compression scheme (codec) */ | ||
| 26 | switch (tif->tif_dir.td_compression) { | ||
| 27 | -- | ||
| 28 | 2.25.1 | ||
| 29 | |||
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb b/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb index 149516508f..b5ccd859f3 100644 --- a/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb +++ b/meta/recipes-multimedia/libtiff/tiff_4.3.0.bb | |||
| @@ -21,6 +21,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \ | |||
| 21 | file://0001-fix-the-FPE-in-tiffcrop-415-427-and-428.patch \ | 21 | file://0001-fix-the-FPE-in-tiffcrop-415-427-and-428.patch \ |
| 22 | file://CVE-2022-1354.patch \ | 22 | file://CVE-2022-1354.patch \ |
| 23 | file://CVE-2022-1355.patch \ | 23 | file://CVE-2022-1355.patch \ |
| 24 | file://CVE-2022-34526.patch \ | ||
| 24 | " | 25 | " |
| 25 | 26 | ||
| 26 | SRC_URI[sha256sum] = "0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8" | 27 | SRC_URI[sha256sum] = "0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8" |
