Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions SPECS/gdk-pixbuf2/CVE-2026-81893.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From adcf6af8bdfe57da8955784eb2ef7e1a66201fe3 Mon Sep 17 00:00:00 2001
From: Benjamin Otte <otte@redhat.com>
Date: Wed, 5 Aug 2026 18:19:01 +0200
Subject: [PATCH] jpeg: When freeing memory, unset the size

Fixes potential invalid write if a specifically crafted JPEG file
would use markers to:

1. cause memory to be allocated
2. cause it to be freed due to an error
3. cause memory to be allocated again

I did not attempt to craft such a file.

Signed-off-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
Upstream-reference: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/efe658674bd103d1c9bf50809d5767a3f6dd5a01.patch
---
gdk-pixbuf/io-jpeg.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 60ad0d0..767546e 100644
--- a/gdk-pixbuf/io-jpeg.c
+++ b/gdk-pixbuf/io-jpeg.c
@@ -386,6 +386,8 @@ out:
if (!ret) {
g_free (context->icc_profile);
context->icc_profile = NULL;
+ context->icc_profile_size = 0;
+ context->icc_profile_size_allocated = 0;
}
return ret;
}
--
2.45.4

6 changes: 5 additions & 1 deletion SPECS/gdk-pixbuf2/gdk-pixbuf2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Summary: An image loading library
Name: gdk-pixbuf2
Version: 2.42.10
Release: 5%{?dist}
Release: 6%{?dist}
License: LGPLv2+
Vendor: Microsoft Corporation
Distribution: Azure Linux
Expand All @@ -12,6 +12,7 @@ Patch0: CVE-2022-48622.patch
Patch1: CVE-2025-6199.patch
Patch2: CVE-2025-7345.patch
Patch3: CVE-2026-5201.patch
Patch4: CVE-2026-81893.patch
BuildRequires: %{_bindir}/rst2man
BuildRequires: gettext
BuildRequires: libjpeg-devel
Expand Down Expand Up @@ -118,6 +119,9 @@ gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
%{_datadir}/installed-tests

%changelog
* Mon Sep 07 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 2.42.10-6
- Patch for CVE-2026-81893

* Thu Apr 02 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 2.42.10-5
- Patch for CVE-2026-5201

Expand Down
Loading