Skip to content

Commit c4f6813

Browse files
CBL-Mariner-Botazurelinux-securityaaruag
authored
[AUTO-CHERRYPICK] [AutoPR- Security] Patch gdk-pixbuf2 for CVE-2025-6199 - branch 3.0-dev (microsoft#14286)
Co-authored-by: Azure Linux Security Servicing Account <[email protected]> Co-authored-by: aaruag <[email protected]>
1 parent ce11436 commit c4f6813

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

SPECS/gdk-pixbuf2/CVE-2025-6199.patch

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 5c0fdbcfecf1a21f35f778c1599a3bc237999d3f Mon Sep 17 00:00:00 2001
2+
From: Azure Linux Security Servicing Account
3+
4+
Date: Tue, 1 Jul 2025 08:46:50 +0000
5+
Subject: [PATCH] Fix CVE CVE-2025-6199 in gdk-pixbuf2
6+
7+
Upstream Patch Reference: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/191.patch
8+
---
9+
gdk-pixbuf/lzw.c | 2 +-
10+
1 file changed, 1 insertion(+), 1 deletion(-)
11+
12+
diff --git a/gdk-pixbuf/lzw.c b/gdk-pixbuf/lzw.c
13+
index 1529356..4f3dd8b 100644
14+
--- a/gdk-pixbuf/lzw.c
15+
+++ b/gdk-pixbuf/lzw.c
16+
@@ -208,7 +208,7 @@ lzw_decoder_feed (LZWDecoder *self,
17+
/* Invalid code received - just stop here */
18+
if (self->code >= self->code_table_size) {
19+
self->last_code = self->eoi_code;
20+
- return output_length;
21+
+ return n_written;
22+
}
23+
24+
/* Convert codeword into indexes */
25+
--
26+
2.45.3
27+

SPECS/gdk-pixbuf2/gdk-pixbuf2.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
Summary: An image loading library
33
Name: gdk-pixbuf2
44
Version: 2.42.10
5-
Release: 2%{?dist}
5+
Release: 3%{?dist}
66
License: LGPLv2+
77
Vendor: Microsoft Corporation
88
Distribution: Azure Linux
99
URL: https://gitlab.gnome.org/GNOME/gdk-pixbuf
1010
Source0: https://download.gnome.org/sources/gdk-pixbuf/2.42/gdk-pixbuf-%{version}.tar.xz
1111
Patch0: CVE-2022-48622.patch
12+
Patch1: CVE-2025-6199.patch
1213
BuildRequires: %{_bindir}/rst2man
1314
BuildRequires: gettext
1415
BuildRequires: libjpeg-devel
@@ -115,6 +116,9 @@ gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
115116
%{_datadir}/installed-tests
116117

117118
%changelog
119+
* Tue Jul 01 2025 Azure Linux Security Servicing Account <[email protected]> - 2.42.10-3
120+
- Patch for CVE-2025-6199
121+
118122
* Thu Sep 19 2024 Sumedh Sharma <[email protected]> - 2.42.10-2
119123
- Add patch for CVE-2022-48622
120124

0 commit comments

Comments
 (0)