public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marek Kasik <mkasik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/poppler] f43: Backport fixes for several CVEs
Date: Tue, 10 Nov 2026 16:25:10 GMT [thread overview]
Message-ID: <179432791094.1.164216514605483067.rpms-poppler-ed0bf0906863@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/poppler
Branch : f43
Commit : ed0bf0906863b14cabd5d6ff0ab735ba358b67bf
Author : Marek Kasik <mkasik@redhat.com>
Date : 2026-11-10T17:24:32+01:00
Stats : +86/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/poppler/c/ed0bf0906863b14cabd5d6ff0ab735ba358b67bf?branch=f43
Log:
Backport fixes for several CVEs
Fixes CVE-2026-102621, CVE-2026-102620 and CVE-2026-93653.
Resolves: #2543972, #2544506, #2537011
---
diff --git a/poppler-25.07.0-clipToPath-integer-overflow.patch b/poppler-25.07.0-clipToPath-integer-overflow.patch
new file mode 100644
index 0000000..22ce9a8
--- /dev/null
+++ b/poppler-25.07.0-clipToPath-integer-overflow.patch
@@ -0,0 +1,31 @@
+From 323c91036d99926a8b90dc14329f7b40aece22f8 Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <aacid@kde.org>
+Date: Sat, 8 Aug 2026 15:02:27 +0200
+Subject: Fix integer overflow in SplashClip::clipToPath
+
+Issue #1763
+
+diff --git a/splash/SplashClip.cc b/splash/SplashClip.cc
+index 78249652c..b096beebd 100644
+--- a/splash/SplashClip.cc
++++ b/splash/SplashClip.cc
+@@ -23,6 +23,8 @@
+ #include <cstdlib>
+ #include <cstring>
+ #include "goo/gmem.h"
++#include "goo/GooCheckedOps.h"
++#include "goo/GooLikely.h"
+ #include "SplashErrorCodes.h"
+ #include "SplashMath.h"
+ #include "SplashPath.h"
+@@ -211,7 +213,9 @@ SplashError SplashClip::clipToPath(const SplashPath &path, const std::array<doub
+ xPath.sort();
+ flags[length] = eo ? splashClipEO : 0;
+ if (antialias) {
+- yMinAA = yMinI * splashAASize;
++ if (unlikely(checkedMultiply(yMinI, splashAASize, &yMinAA))) {
++ return splashErrGeneric;
++ }
+ yMaxAA = (yMaxI + 1) * splashAASize - 1;
+ } else {
+ yMinAA = yMinI;
diff --git a/poppler-25.07.0-cvtSfnts-integer-overflow.patch b/poppler-25.07.0-cvtSfnts-integer-overflow.patch
new file mode 100644
index 0000000..8c6a8eb
--- /dev/null
+++ b/poppler-25.07.0-cvtSfnts-integer-overflow.patch
@@ -0,0 +1,25 @@
+From 245d3c6823377755f2c1d5fdddd010279c6ed94d Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <aacid@kde.org>
+Date: Sat, 8 Aug 2026 15:47:43 +0200
+Subject: Fix integer overflow in FoFiTrueType::cvtSfnts
+
+Issue #1762
+
+diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc
+index e15cfc576..9e280fe89 100644
+--- a/fofi/FoFiTrueType.cc
++++ b/fofi/FoFiTrueType.cc
+@@ -1204,7 +1204,11 @@ void FoFiTrueType::cvtSfnts(FoFiOutputFunc outputFunc, void *outputStream, const
+ checksum = 0;
+ glyfPos = tables[seekTable("glyf")].offset;
+ for (j = 0; j < nGlyphs; ++j) {
+- length += locaTable[j].len;
++ if (unlikely(checkedAdd(length, locaTable[j].len, &length))) {
++ error(errSyntaxError, -1, "Integer overflow in glyph table length calculation");
++ ok = false;
++ break;
++ }
+ if (length & 3) {
+ length += 4 - (length & 3);
+ }
+ }
diff --git a/poppler-25.07.0-splash-infinite-loop.patch b/poppler-25.07.0-splash-infinite-loop.patch
new file mode 100644
index 0000000..54d092d
--- /dev/null
+++ b/poppler-25.07.0-splash-infinite-loop.patch
@@ -0,0 +1,21 @@
+From 3924f2bff45690230c1a7b1e4927ac69af2c0c48 Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <aacid@kde.org>
+Date: Wed, 4 Nov 2026 23:23:27 +0100
+Subject: Fix infinite loop in broken files
+
+
+diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
+index 667b69244..8ace8092b 100644
+--- a/poppler/SplashOutputDev.cc
++++ b/poppler/SplashOutputDev.cc
+@@ -4290,6 +4290,10 @@ bool SplashOutputDev::tilingPatternFill(...)
+ surface_height = (int)ceil(fabs(ky));
+ repeatX = x1 - x0;
+ repeatY = y1 - y0;
++ if (repeatX < 0 || repeatY < 0) {
++ state->setCTM(savedCTM[0], savedCTM[1], savedCTM[2], savedCTM[3], savedCTM[4], savedCTM[5]);
++ return false;
++ }
+ while ((unsigned long)repeatX * repeatY > 0x800000L) {
+ // try to avoid bogus memory allocation size
+ if (repeatX > 1) {
diff --git a/poppler.spec b/poppler.spec
index 009c02f..09616aa 100644
--- a/poppler.spec
+++ b/poppler.spec
@@ -36,6 +36,15 @@ Patch4: poppler-25.07.0-cert-db.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2403486
Patch5: poppler-25.07.0-duplicate-entries.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=2543972 - CVE-2026-102621
+Patch6: poppler-25.07.0-clipToPath-integer-overflow.patch
+
+# https://bugzilla.redhat.com/show_bug.cgi?id=2544506 - CVE-2026-102620
+Patch7: poppler-25.07.0-cvtSfnts-integer-overflow.patch
+
+# https://bugzilla.redhat.com/show_bug.cgi?id=2537011 - CVE-2026-93653
+Patch8: poppler-25.07.0-splash-infinite-loop.patch
+
BuildRequires: make
BuildRequires: cmake
BuildRequires: gcc-c++
reply other threads:[~2026-11-10 16:25 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=179432791094.1.164216514605483067.rpms-poppler-ed0bf0906863@fedoraproject.org \
--to=mkasik@redhat.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