Skip to content

Commit bb834a8

Browse files
Patch libtiff for CVE-2023-6228 [Low] (#11788)
Signed-off-by: Ankita Pareek <ankitapareek@microsoft.com> Co-authored-by: Ankita Pareek <ankitapareek@microsoft.com>
1 parent 73d3abb commit bb834a8

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

SPECS/libtiff/CVE-2023-6228.patch

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 1e7d217a323eac701b134afc4ae39b6bdfdbc96a Mon Sep 17 00:00:00 2001
2+
From: Su_Laus <sulau@freenet.de>
3+
Date: Sat, 9 Sep 2023 15:45:47 +0200
4+
Subject: [PATCH] Check also if codec of input image is available,
5+
independently from codec check of output image and return with error if not.
6+
Fixes #606.
7+
8+
---
9+
tools/tiffcp.c | 2 ++
10+
1 file changed, 2 insertions(+)
11+
12+
diff --git a/tools/tiffcp.c b/tools/tiffcp.c
13+
index aff06260e..2628bdbb9 100644
14+
--- a/tools/tiffcp.c
15+
+++ b/tools/tiffcp.c
16+
@@ -846,6 +846,8 @@ static int tiffcp(TIFF *in, TIFF *out)
17+
if (!TIFFIsCODECConfigured(compression))
18+
return FALSE;
19+
TIFFGetFieldDefaulted(in, TIFFTAG_COMPRESSION, &input_compression);
20+
+ if (!TIFFIsCODECConfigured(input_compression))
21+
+ return FALSE;
22+
TIFFGetFieldDefaulted(in, TIFFTAG_PHOTOMETRIC, &input_photometric);
23+
if (input_compression == COMPRESSION_JPEG)
24+
{
25+
--
26+
GitLab
27+

SPECS/libtiff/libtiff.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: TIFF libraries and associated utilities.
22
Name: libtiff
33
Version: 4.6.0
4-
Release: 5%{?dist}
4+
Release: 6%{?dist}
55
License: libtiff
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
@@ -12,6 +12,7 @@ Patch0: CVE-2023-52356.patch
1212
Patch1: CVE-2023-6277.patch
1313
Patch2: CVE-2024-7006.patch
1414
Patch3: CVE-2023-3164.patch
15+
Patch4: CVE-2023-6228.patch
1516

1617
BuildRequires: autoconf
1718
BuildRequires: automake
@@ -65,6 +66,9 @@ make %{?_smp_mflags} -k check
6566
%{_docdir}/*
6667

6768
%changelog
69+
* Mon Feb 03 2025 Ankita Pareek <ankitapareek@microsoft.com> - 4.6.0-6
70+
- Address CVE-2023-6228 with a patch
71+
6872
* Fri Jan 17 2025 Bhagyashri Pathak <bhapathak@microsoft.com> - 4.6.0-5
6973
- Add patch for CVE-2023-3164.patch
7074

0 commit comments

Comments
 (0)