Skip to content

Commit 279a31e

Browse files
[AUTO-CHERRYPICK] [Low] patch libtiff for CVE-2023-6228 - branch main (#13352)
Co-authored-by: jykanase <v-jykanase@microsoft.com>
1 parent e731008 commit 279a31e

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

SPECS/libtiff/CVE-2023-6228.patch

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From b40cf6a6ef58b3ab091f3a00519eae72e2ced10c Mon Sep 17 00:00:00 2001
2+
From: jykanase <v-jykanase@microsoft.com>
3+
Date: Tue, 18 Mar 2025 08:15:06 +0000
4+
Subject: [PATCH] CVE-2023-6228
5+
6+
Source Link: https://gitlab.com/libtiff/libtiff/-/commit/1e7d217a323eac701b134afc4ae39b6bdfdbc96a
7+
---
8+
tools/tiffcp.c | 2 ++
9+
1 file changed, 2 insertions(+)
10+
11+
diff --git a/tools/tiffcp.c b/tools/tiffcp.c
12+
index aff0626..2628bdb 100644
13+
--- a/tools/tiffcp.c
14+
+++ b/tools/tiffcp.c
15+
@@ -846,6 +846,8 @@ static int tiffcp(TIFF *in, TIFF *out)
16+
if (!TIFFIsCODECConfigured(compression))
17+
return FALSE;
18+
TIFFGetFieldDefaulted(in, TIFFTAG_COMPRESSION, &input_compression);
19+
+ if (!TIFFIsCODECConfigured(input_compression))
20+
+ return FALSE;
21+
TIFFGetFieldDefaulted(in, TIFFTAG_PHOTOMETRIC, &input_photometric);
22+
if (input_compression == COMPRESSION_JPEG)
23+
{
24+
--
25+
2.45.2
26+

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: Mariner
@@ -12,6 +12,7 @@ Patch0: CVE-2023-52356.patch
1212
Patch1: CVE-2024-7006.patch
1313
Patch2: CVE-2023-6277.patch
1414
Patch3: CVE-2023-3164.patch
15+
Patch4: CVE-2023-6228.patch
1516
BuildRequires: autoconf
1617
BuildRequires: automake
1718
BuildRequires: libjpeg-turbo-devel
@@ -64,6 +65,9 @@ make %{?_smp_mflags} -k check
6465
%{_docdir}/*
6566

6667
%changelog
68+
* Tue Mar 18 2025 Jyoti Kanase <v-jykanase@microsoft.com> - 4.6.0-6
69+
- Fix CVE-2023-6228
70+
6771
* Thu Jan 16 2025 Bhagyashri Pathak <bhapathak@microsoft.com> - 4.6.0-5
6872
- Add patch to resolve CVE-2023-3164
6973

0 commit comments

Comments
 (0)