public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/podofo] f44: Backport patch for CVE-2026-54633
Date: Sat, 17 Oct 2026 08:37:24 GMT	[thread overview]
Message-ID: <179222624400.1.3066438716196690280.rpms-podofo-8a8d5dc93520@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/podofo
Branch : f44
Commit : 8a8d5dc93520b354f946ebfcc6a7a066e4203253
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-10-17T10:37:13+02:00
Stats  : +33/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/podofo/c/8a8d5dc93520b354f946ebfcc6a7a066e4203253?branch=f44

Log:
Backport patch for CVE-2026-54633

---
diff --git a/999c519d285c4a65eba48409d9cd2da9d4743cca.patch b/999c519d285c4a65eba48409d9cd2da9d4743cca.patch
new file mode 100644
index 0000000..dfee15d
--- /dev/null
+++ b/999c519d285c4a65eba48409d9cd2da9d4743cca.patch
@@ -0,0 +1,27 @@
+diff -rupN --no-dereference podofo-1.0.4/src/podofo/main/PdfColorSpaceFilter.cpp podofo-1.0.4-new/src/podofo/main/PdfColorSpaceFilter.cpp
+--- podofo-1.0.4/src/podofo/main/PdfColorSpaceFilter.cpp	2026-05-01 12:44:08.000000000 +0200
++++ podofo-1.0.4-new/src/podofo/main/PdfColorSpaceFilter.cpp	2026-10-17 10:36:45.438710902 +0200
+@@ -224,8 +224,12 @@ void PdfColorSpaceFilterIndexed::FetchSc
+             {
+                 for (unsigned i = 0; i < width; i++)
+                 {
+-                    PODOFO_INVARIANT(srcScanLine[i] < m_MapSize);
+-                    const unsigned char* mappedColor = (const unsigned char*)(m_lookup.data() + srcScanLine[i] * 3);
++                    // Clamp the index on out-of-bounds palette access
++                    unsigned colorIndex = srcScanLine[i];
++                    if (colorIndex >= m_MapSize)
++                        colorIndex = m_MapSize - 1;
++
++                    const unsigned char* mappedColor = (const unsigned char*)(m_lookup.data() + colorIndex * 3);
+                     *(dstScanLine + i * 3 + 0) = mappedColor[0];
+                     *(dstScanLine + i * 3 + 1) = mappedColor[1];
+                     *(dstScanLine + i * 3 + 2) = mappedColor[2];
+@@ -778,7 +782,7 @@ bool PdfColorSpaceFilterFactory::TryCrea
+                 if (!TryCreateFromObject(arr->MustFindAt(1), baseColorSpace))
+                     goto InvalidIndexed;
+ 
+-                if (!arr->MustFindAt(2).TryGetNumber(maxIndex) && maxIndex < 1)
++                if (!arr->MustFindAt(2).TryGetNumber(maxIndex) || maxIndex < 1 || maxIndex > 255)
+                     goto InvalidIndexed;
+ 
+                 stream = arr->MustFindAt(3).GetStream();

diff --git a/podofo.spec b/podofo.spec
index 663a925..f86ec7c 100644
--- a/podofo.spec
+++ b/podofo.spec
@@ -9,7 +9,7 @@
 
 Name:           podofo
 Version:        1.0.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Tools and libraries to work with the PDF file format
 
 License:        LGPL-2.0-or-later
@@ -20,6 +20,8 @@ Source1:        https://github.com/podofo/podofo-resources/archive/%{podofo_reso
 # Downstream patch for CVE-2019-20093
 # https://sourceforge.net/p/podofo/tickets/75/
 Patch1:         podofo_CVE-2019-20093.patch
+# Backport patch for CVE-2026-54633
+Patch2:         https://github.com/podofo/podofo/commit/999c519d285c4a65eba48409d9cd2da9d4743cca.patch
 
 
 BuildRequires:  gcc-c++
@@ -215,6 +217,9 @@ rm -rf %{buildroot}%{mingw64_datadir}
 
 
 %changelog
+* Sat Oct 17 2026 Sandro Mani <manisandro@gmail.com> - 1.0.4-2
+- Backport patch for CVE-2026-54633
+
 * Wed May 20 2026 Sandro Mani <manisandro@gmail.com> - 1.0.4-1
 - Update to 1.0.4
 

                 reply	other threads:[~2026-10-17  8:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179222624400.1.3066438716196690280.rpms-podofo-8a8d5dc93520@fedoraproject.org \
    --to=manisandro@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox