public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-poppler] f45: Apply fixes for CVE-2026-102621, CVE-2026-102620, CVE-2026-107705, CVE-2026-93653
@ 2026-11-13 21:23 Sandro Mani
0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-11-13 21:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mingw-poppler
Branch : f45
Commit : dfbf2d29561b51dcd308440c8402e0fe7ba01e9c
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-11-13T22:23:15+01:00
Stats : +232/-2 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-poppler/c/dfbf2d29561b51dcd308440c8402e0fe7ba01e9c?branch=f45
Log:
Apply fixes for CVE-2026-102621, CVE-2026-102620, CVE-2026-107705, CVE-2026-93653
---
diff --git a/mingw-poppler.spec b/mingw-poppler.spec
index f9a3941..382a1c8 100644
--- a/mingw-poppler.spec
+++ b/mingw-poppler.spec
@@ -4,7 +4,7 @@
Name: mingw-%{pkgname}
Version: 26.01.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: MinGW Windows Poppler library
License: (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND MIT
@@ -14,6 +14,14 @@ Source0: http://poppler.freedesktop.org/%{pkgname}-%{version}.tar.xz
# Downstream fix for CVE-2017-9083 (#1453200)
Patch1: poppler_CVE-2017-9083.patch
+# Backport fix for CVE-2026-102621
+Patch2: https://src.fedoraproject.org/rpms/poppler/raw/f44/f/poppler-26.01.0-clipToPath-integer-overflow.patch
+# Backport fix for CVE-2026-102620
+Patch3: https://src.fedoraproject.org/rpms/poppler/raw/f44/f/poppler-26.01.0-cvtSfnts-integer-overflow.patch
+# Backport fix for CVE-2026-107705
+Patch4: https://src.fedoraproject.org/rpms/poppler/raw/f44/f/poppler-26.01.0-decrypt-password-length.patch
+# Apply fix for CVE-2026-93653
+Patch5: https://src.fedoraproject.org/rpms/poppler/raw/f44/f/poppler-26.01.0-splash-infinite-loop.patch
BuildRequires: make
BuildRequires: cmake
@@ -252,6 +260,9 @@ rm -f %{buildroot}%{mingw64_bindir}/*.exe
%changelog
+* Fri Nov 13 2026 Sandro Mani <manisandro@gmail.com> - 26.01.0-3
+- Apply fixes for CVE-2026-102621, CVE-2026-102620, CVE-2026-107705, CVE-2026-93653
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 26.01.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/poppler-26.01.0-clipToPath-integer-overflow.patch b/poppler-26.01.0-clipToPath-integer-overflow.patch
new file mode 100644
index 0000000..5437626
--- /dev/null
+++ b/poppler-26.01.0-clipToPath-integer-overflow.patch
@@ -0,0 +1,23 @@
+diff -rupN --no-dereference poppler-26.01.0/splash/SplashClip.cc poppler-26.01.0-new/splash/SplashClip.cc
+--- poppler-26.01.0/splash/SplashClip.cc 2026-01-06 23:13:29.000000000 +0100
++++ poppler-26.01.0-new/splash/SplashClip.cc 2026-11-13 22:22:45.821889866 +0100
+@@ -23,6 +23,8 @@
+ #include <config.h>
+
+ #include <algorithm>
++#include "goo/GooCheckedOps.h"
++#include "goo/GooLikely.h"
+ #include "SplashErrorCodes.h"
+ #include "SplashMath.h"
+ #include "SplashPath.h"
+@@ -201,7 +203,9 @@ SplashError SplashClip::clipToPath(const
+ } else {
+ if (antialias) {
+ xPath.aaScale();
+- yMinAA = yMinI * splashAASize;
++ if (unlikely(checkedMultiply(yMinI, splashAASize, &yMinAA))) {
++ return splashErrGeneric;
++ }
+ yMaxAA = (yMaxI + 1) * splashAASize - 1;
+ } else {
+ yMinAA = yMinI;
diff --git a/poppler-26.01.0-cvtSfnts-integer-overflow.patch b/poppler-26.01.0-cvtSfnts-integer-overflow.patch
new file mode 100644
index 0000000..fbdad3e
--- /dev/null
+++ b/poppler-26.01.0-cvtSfnts-integer-overflow.patch
@@ -0,0 +1,16 @@
+diff -rupN --no-dereference poppler-26.01.0/fofi/FoFiTrueType.cc poppler-26.01.0-new/fofi/FoFiTrueType.cc
+--- poppler-26.01.0/fofi/FoFiTrueType.cc 2026-01-06 23:13:29.000000000 +0100
++++ poppler-26.01.0-new/fofi/FoFiTrueType.cc 2026-11-13 22:22:45.881056736 +0100
+@@ -1225,7 +1225,11 @@ void FoFiTrueType::cvtSfnts(FoFiOutputFu
+ 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-26.01.0-decrypt-password-length.patch b/poppler-26.01.0-decrypt-password-length.patch
new file mode 100644
index 0000000..3c7a74c
--- /dev/null
+++ b/poppler-26.01.0-decrypt-password-length.patch
@@ -0,0 +1,166 @@
+diff -rupN --no-dereference poppler-26.01.0/poppler/Decrypt.cc poppler-26.01.0-new/poppler/Decrypt.cc
+--- poppler-26.01.0/poppler/Decrypt.cc 2026-01-06 23:13:29.000000000 +0100
++++ poppler-26.01.0-new/poppler/Decrypt.cc 2026-11-13 22:22:45.942525514 +0100
+@@ -57,16 +57,18 @@ static void sha256(unsigned char *msg, i
+ static void sha384(unsigned char *msg, int msgLen, unsigned char *hash);
+ static void sha512(unsigned char *msg, int msgLen, unsigned char *hash);
+
+-static void revision6Hash(const GooString *inputPassword, unsigned char *K, const char *userKey);
++static void revision6Hash(const std::string &inputPassword, unsigned char *K, const char *userKey);
+
+ static const unsigned char passwordPad[32] = { 0x28, 0xbf, 0x4e, 0x5e, 0x4e, 0x75, 0x8a, 0x41, 0x64, 0x00, 0x4e, 0x56, 0xff, 0xfa, 0x01, 0x08, 0x2e, 0x2e, 0x00, 0xb6, 0xd0, 0x68, 0x3e, 0x80, 0x2f, 0x0c, 0xa9, 0xfe, 0x64, 0x53, 0x69, 0x7a };
+
++constexpr int kMaxPasswordLength = 127;
++
+ //------------------------------------------------------------------------
+ // Decrypt
+ //------------------------------------------------------------------------
+
+-bool Decrypt::makeFileKey(int encRevision, int keyLength, const GooString *ownerKey, const GooString *userKey, const GooString *ownerEnc, const GooString *userEnc, int permissions, const GooString *fileID, const GooString *ownerPassword,
+- const GooString *userPassword, unsigned char *fileKey, bool encryptMetadata, bool *ownerPasswordOk)
++bool Decrypt::makeFileKey(int encRevision, int keyLength, const GooString *ownerKey, const GooString *userKey, const GooString *ownerEnc, const GooString *userEnc, int permissions, const GooString *fileID, const GooString *ownerPasswordA,
++ const GooString *userPasswordA, unsigned char *fileKey, bool encryptMetadata, bool *ownerPasswordOk)
+ {
+ DecryptAES256State state;
+ unsigned char test[127 + 56], test2[32];
+@@ -74,20 +76,18 @@ bool Decrypt::makeFileKey(int encRevisio
+ unsigned char fState[256];
+ unsigned char tmpKey[16];
+ unsigned char fx, fy;
+- int len, i, j;
++ int i, j;
+
+ *ownerPasswordOk = false;
+
+ if (encRevision == 5 || encRevision == 6) {
+
+ // check the owner password
+- if (ownerPassword) {
++ if (ownerPasswordA) {
+ //~ this is supposed to convert the password to UTF-8 using "SASLprep"
+- len = ownerPassword->size();
+- if (len > 127) {
+- len = 127;
+- }
+- memcpy(test, ownerPassword->c_str(), len);
++ const std::string ownerPassword = ownerPasswordA->toStr().substr(0, kMaxPasswordLength);
++ const int len = ownerPassword.size();
++ memcpy(test, ownerPassword.c_str(), len);
+ memcpy(test + len, ownerKey->c_str() + 32, 8);
+ memcpy(test + len + 8, userKey->c_str(), 48);
+ sha256(test, len + 56, test);
+@@ -98,7 +98,7 @@ bool Decrypt::makeFileKey(int encRevisio
+ if (!memcmp(test, ownerKey->c_str(), 32)) {
+
+ // compute the file key from the owner password
+- memcpy(test, ownerPassword->c_str(), len);
++ memcpy(test, ownerPassword.c_str(), len);
+ memcpy(test + len, ownerKey->c_str() + 40, 8);
+ memcpy(test + len + 8, userKey->c_str(), 48);
+ sha256(test, len + 56, test);
+@@ -121,13 +121,11 @@ bool Decrypt::makeFileKey(int encRevisio
+ }
+
+ // check the user password
+- if (userPassword) {
++ if (userPasswordA) {
+ //~ this is supposed to convert the password to UTF-8 using "SASLprep"
+- len = userPassword->size();
+- if (len > 127) {
+- len = 127;
+- }
+- memcpy(test, userPassword->c_str(), len);
++ const std::string userPassword = userPasswordA->toStr().substr(0, kMaxPasswordLength);
++ const int len = userPassword.size();
++ memcpy(test, userPassword.c_str(), len);
+ memcpy(test + len, userKey->c_str() + 32, 8);
+ sha256(test, len + 8, test);
+ if (encRevision == 6) {
+@@ -138,7 +136,7 @@ bool Decrypt::makeFileKey(int encRevisio
+ if (!memcmp(test, userKey->c_str(), 32)) {
+
+ // compute the file key from the user password
+- memcpy(test, userPassword->c_str(), len);
++ memcpy(test, userPassword.c_str(), len);
+ memcpy(test + len, userKey->c_str() + 40, 8);
+ sha256(test, len + 8, test);
+ if (encRevision == 6) {
+@@ -163,13 +161,13 @@ bool Decrypt::makeFileKey(int encRevisio
+ } else {
+
+ // try using the supplied owner password to generate the user password
+- if (ownerPassword) {
+- len = ownerPassword->size();
++ if (ownerPasswordA) {
++ const int len = ownerPasswordA->size();
+ if (len < 32) {
+- memcpy(test, ownerPassword->c_str(), len);
++ memcpy(test, ownerPasswordA->c_str(), len);
+ memcpy(test + len, passwordPad, 32 - len);
+ } else {
+- memcpy(test, ownerPassword->c_str(), 32);
++ memcpy(test, ownerPasswordA->c_str(), 32);
+ }
+ md5(test, 32, test);
+ if (encRevision == 3) {
+@@ -206,7 +204,7 @@ bool Decrypt::makeFileKey(int encRevisio
+ }
+
+ // try using the supplied user password
+- return makeFileKey2(encRevision, keyLength, ownerKey, userKey, permissions, fileID, userPassword, fileKey, encryptMetadata);
++ return makeFileKey2(encRevision, keyLength, ownerKey, userKey, permissions, fileID, userPasswordA, fileKey, encryptMetadata);
+ }
+ }
+
+@@ -217,13 +215,13 @@ bool Decrypt::makeFileKey2(int encRevisi
+ unsigned char fState[256];
+ unsigned char tmpKey[16];
+ unsigned char fx, fy;
+- int len, i, j;
++ int i, j;
+ bool ok;
+
+ // generate file key
+ buf = (unsigned char *)gmalloc(72 + fileID->size());
+ if (userPassword) {
+- len = userPassword->size();
++ const int len = userPassword->size();
+ if (len < 32) {
+ memcpy(buf, userPassword->c_str(), len);
+ memcpy(buf + len, passwordPad, 32 - len);
+@@ -239,7 +237,7 @@ bool Decrypt::makeFileKey2(int encRevisi
+ buf[66] = (permissions >> 16) & 0xff;
+ buf[67] = (permissions >> 24) & 0xff;
+ memcpy(buf + 68, fileID->c_str(), fileID->size());
+- len = 68 + fileID->size();
++ int len = 68 + fileID->size();
+ if (!encryptMetadata) {
+ buf[len++] = 0xff;
+ buf[len++] = 0xff;
+@@ -1762,7 +1760,7 @@ static void sha384(unsigned char *msg, i
+ // Section 7.6.3.3 (Encryption Key algorithm) of ISO/DIS 32000-2
+ // Algorithm 2.B:Computing a hash (for revision 6).
+ //------------------------------------------------------------------------
+-static void revision6Hash(const GooString *inputPassword, unsigned char *K, const char *userKey)
++static void revision6Hash(const std::string &inputPassword, unsigned char *K, const char *userKey)
+ {
+ unsigned char K1[64 * (127 + 64 + 48)];
+ unsigned char E[64 * (127 + 64 + 48)];
+@@ -1770,7 +1768,7 @@ static void revision6Hash(const GooStrin
+ unsigned char aesKey[16];
+ unsigned char BE16byteNumber[16];
+
+- int inputPasswordLength = inputPassword->size();
++ const int inputPasswordLength = inputPassword.size();
+ int KLength = 32;
+ const int userKeyLength = userKey ? 48 : 0;
+ int sequenceLength;
+@@ -1781,7 +1779,7 @@ static void revision6Hash(const GooStrin
+ sequenceLength = inputPasswordLength + KLength + userKeyLength;
+ totalLength = 64 * sequenceLength;
+ // a.make the string K1
+- memcpy(K1, inputPassword->c_str(), inputPasswordLength);
++ memcpy(K1, inputPassword.c_str(), inputPasswordLength);
+ memcpy(K1 + inputPasswordLength, K, KLength);
+ if (userKey) {
+ memcpy(K1 + inputPasswordLength + KLength, userKey, userKeyLength);
diff --git a/poppler-26.01.0-splash-infinite-loop.patch b/poppler-26.01.0-splash-infinite-loop.patch
new file mode 100644
index 0000000..55daf2b
--- /dev/null
+++ b/poppler-26.01.0-splash-infinite-loop.patch
@@ -0,0 +1,14 @@
+diff -rupN --no-dereference poppler-26.01.0/poppler/SplashOutputDev.cc poppler-26.01.0-new/poppler/SplashOutputDev.cc
+--- poppler-26.01.0/poppler/SplashOutputDev.cc 2026-01-06 23:13:29.000000000 +0100
++++ poppler-26.01.0-new/poppler/SplashOutputDev.cc 2026-11-13 22:22:46.002484291 +0100
+@@ -4289,6 +4289,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_CVE-2017-9083.patch b/poppler_CVE-2017-9083.patch
index 556b4fa..9529294 100644
--- a/poppler_CVE-2017-9083.patch
+++ b/poppler_CVE-2017-9083.patch
@@ -1,6 +1,6 @@
diff -rupN --no-dereference poppler-26.01.0/poppler/JPXStream.cc poppler-26.01.0-new/poppler/JPXStream.cc
--- poppler-26.01.0/poppler/JPXStream.cc 2026-01-06 23:13:29.000000000 +0100
-+++ poppler-26.01.0-new/poppler/JPXStream.cc 2026-01-30 23:06:40.665947722 +0100
++++ poppler-26.01.0-new/poppler/JPXStream.cc 2026-11-13 22:22:45.762918689 +0100
@@ -918,6 +918,10 @@ bool JPXStream::readCodestream()
error(errSyntaxError, getPos(), "Different number of components in JPX SIZ marker segment");
return false;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 21:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 21:23 [rpms/mingw-poppler] f45: Apply fixes for CVE-2026-102621, CVE-2026-102620, CVE-2026-107705, CVE-2026-93653 Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox