public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/podofo] f44: Backport patch for CVE-2026-54633
@ 2026-10-17 8:37 Sandro Mani
0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-10-17 8:37 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-17 8:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-17 8:37 [rpms/podofo] f44: Backport patch for CVE-2026-54633 Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox