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/mingw-poppler] rawhide: Update to 26.08.0, apply fixes for CVE-2026-102621, CVE-2026-102620, CVE-2026-107705, CVE-2026-93653
Date: Fri, 13 Nov 2026 16:50:28 GMT [thread overview]
Message-ID: <179458862838.1.17295900583137148951.rpms-mingw-poppler-f3c45ddf0b2f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/mingw-poppler
Branch : rawhide
Commit : f3c45ddf0b2f0243459fa9f2f0d9362216e2d1ec
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-11-13T17:50:18+01:00
Stats : +241/-27 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-poppler/c/f3c45ddf0b2f0243459fa9f2f0d9362216e2d1ec?branch=rawhide
Log:
Update to 26.08.0, apply fixes for CVE-2026-102621, CVE-2026-102620, CVE-2026-107705, CVE-2026-93653
---
diff --git a/.gitignore b/.gitignore
index cded591..809375a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -53,3 +53,4 @@
/poppler-25.02.0.tar.xz
/poppler-25.07.0.tar.xz
/poppler-26.01.0.tar.xz
+/poppler-26.08.0.tar.xz
diff --git a/mingw-poppler.spec b/mingw-poppler.spec
index f9a3941..d7a4a57 100644
--- a/mingw-poppler.spec
+++ b/mingw-poppler.spec
@@ -3,17 +3,22 @@
%global pkgname poppler
Name: mingw-%{pkgname}
-Version: 26.01.0
-Release: 2%{?dist}
+Version: 26.08.0
+Release: 1%{?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
BuildArch: noarch
URL: http://poppler.freedesktop.org/
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
+Patch0: https://src.fedoraproject.org/rpms/poppler/raw/rawhide/f/poppler-26.08.0-clipToPath-integer-overflow.patch
+# Backport fix for CVE-2026-102620
+Patch1: https://src.fedoraproject.org/rpms/poppler/raw/rawhide/f/poppler-26.08.0-cvtSfnts-integer-overflow.patch
+# Backport fix for CVE-2026-107705
+Patch2: https://src.fedoraproject.org/rpms/poppler/raw/rawhide/f/poppler-26.08.0-decrypt-password-length.patch
+# Apply fix for CVE-2026-93653
+Patch3: https://src.fedoraproject.org/rpms/poppler/raw/rawhide/f/poppler-26.08.0-splash-infinite-loop.patch
BuildRequires: make
BuildRequires: cmake
@@ -21,7 +26,7 @@ BuildRequires: gettext-devel
BuildRequires: perl(File::Temp)
BuildRequires: mingw32-filesystem
-BuildRequires: mingw32-boost
+# BuildRequires: mingw32-boost
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw32-libjpeg-turbo
BuildRequires: mingw32-libtiff
@@ -35,7 +40,7 @@ BuildRequires: mingw32-qt6-qtbase
BuildRequires: mingw32-curl
BuildRequires: mingw64-filesystem
-BuildRequires: mingw64-boost
+# BuildRequires: mingw64-boost
BuildRequires: mingw64-gcc-c++
BuildRequires: mingw64-libjpeg-turbo
BuildRequires: mingw64-libtiff
@@ -152,10 +157,8 @@ MinGW Windows C++ Poppler library.
%build
export MINGW32_CXXFLAGS="%{mingw32_cflags} -msse2"
export MINGW64_CXXFLAGS="%{mingw64_cflags} -msse2"
-# FIXME: gcc-16 does not properly export std::__get_once_callable
-export MINGW32_LDFLAGS="%{mingw32_ldflags} -static-libstdc++"
-export MINGW64_LDFLAGS="%{mingw64_ldflags} -static-libstdc++"
+# FIXME: mingw-boost too old
%mingw_cmake \
-DENABLE_CMS=lcms2 \
-DENABLE_DCTDECODER=libjpeg \
@@ -164,6 +167,7 @@ export MINGW64_LDFLAGS="%{mingw64_ldflags} -static-libstdc++"
-DENABLE_NSS3=OFF \
-DENABLE_GPGME=OFF \
-DENABLE_ZLIB=OFF \
+ -DENABLE_BOOST=OFF
%mingw_make_build
@@ -183,7 +187,7 @@ rm -f %{buildroot}%{mingw64_bindir}/*.exe
%files -n mingw32-%{pkgname}
%license COPYING
%doc README.md
-%{mingw32_bindir}/libpoppler-156.dll
+%{mingw32_bindir}/libpoppler-163.dll
%{mingw32_includedir}/poppler/
%exclude %{mingw32_includedir}/poppler/cpp/
%exclude %{mingw32_includedir}/poppler/glib/
@@ -218,7 +222,7 @@ rm -f %{buildroot}%{mingw64_bindir}/*.exe
%files -n mingw64-%{pkgname}
%license COPYING
%doc README.md
-%{mingw64_bindir}/libpoppler-156.dll
+%{mingw64_bindir}/libpoppler-163.dll
%{mingw64_includedir}/poppler/
%exclude %{mingw64_includedir}/poppler/cpp/
%exclude %{mingw64_includedir}/poppler/glib/
@@ -252,6 +256,10 @@ rm -f %{buildroot}%{mingw64_bindir}/*.exe
%changelog
+* Sun Aug 16 2026 Sandro Mani <manisandro@gmail.com> - 26.08.0-1
+- Update to 26.08.0
+- 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.08.0-clipToPath-integer-overflow.patch b/poppler-26.08.0-clipToPath-integer-overflow.patch
new file mode 100644
index 0000000..5ca7c1f
--- /dev/null
+++ b/poppler-26.08.0-clipToPath-integer-overflow.patch
@@ -0,0 +1,23 @@
+diff -rupN --no-dereference poppler-26.08.0/splash/SplashClip.cc poppler-26.08.0-new/splash/SplashClip.cc
+--- poppler-26.08.0/splash/SplashClip.cc 2026-08-02 23:16:14.000000000 +0200
++++ poppler-26.08.0-new/splash/SplashClip.cc 2026-11-13 17:49:29.734776091 +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"
+@@ -211,7 +213,9 @@ SplashError SplashClip::clipToPath(const
+ } else {
+ if (antialias) {
+ xPath.aaScale();
+- yMinAA = yMinI * splashAASize;
++ if (unlikely(checkedMultiply(yMinI, splashAASize, &yMinAA))) {
++ return SplashError::Generic;
++ }
+ yMaxAA = (yMaxI + 1) * splashAASize - 1;
+ } else {
+ yMinAA = yMinI;
diff --git a/poppler-26.08.0-cvtSfnts-integer-overflow.patch b/poppler-26.08.0-cvtSfnts-integer-overflow.patch
new file mode 100644
index 0000000..6cfebc3
--- /dev/null
+++ b/poppler-26.08.0-cvtSfnts-integer-overflow.patch
@@ -0,0 +1,16 @@
+diff -rupN --no-dereference poppler-26.08.0/fofi/FoFiTrueType.cc poppler-26.08.0-new/fofi/FoFiTrueType.cc
+--- poppler-26.08.0/fofi/FoFiTrueType.cc 2026-08-02 23:16:14.000000000 +0200
++++ poppler-26.08.0-new/fofi/FoFiTrueType.cc 2026-11-13 17:49:29.792217120 +0100
+@@ -1209,7 +1209,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.08.0-decrypt-password-length.patch b/poppler-26.08.0-decrypt-password-length.patch
new file mode 100644
index 0000000..2971f5b
--- /dev/null
+++ b/poppler-26.08.0-decrypt-password-length.patch
@@ -0,0 +1,166 @@
+diff -rupN --no-dereference poppler-26.08.0/poppler/Decrypt.cc poppler-26.08.0-new/poppler/Decrypt.cc
+--- poppler-26.08.0/poppler/Decrypt.cc 2026-08-02 23:16:14.000000000 +0200
++++ poppler-26.08.0-new/poppler/Decrypt.cc 2026-11-13 17:49:29.849556615 +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) {
+@@ -162,13 +160,13 @@ bool Decrypt::makeFileKey(int encRevisio
+ return false;
+ }
+ // 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) {
+@@ -205,7 +203,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);
+ }
+
+ bool Decrypt::makeFileKey2(int encRevision, int keyLength, const GooString *ownerKey, const GooString *userKey, int permissions, const GooString *fileID, const GooString *userPassword, unsigned char *fileKey, bool encryptMetadata)
+@@ -215,13 +213,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 = static_cast<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);
+@@ -237,7 +235,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;
+@@ -1764,7 +1762,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)];
+@@ -1772,7 +1770,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;
+@@ -1783,7 +1781,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.08.0-splash-infinite-loop.patch b/poppler-26.08.0-splash-infinite-loop.patch
new file mode 100644
index 0000000..5a29c84
--- /dev/null
+++ b/poppler-26.08.0-splash-infinite-loop.patch
@@ -0,0 +1,14 @@
+diff -rupN --no-dereference poppler-26.08.0/poppler/SplashOutputDev.cc poppler-26.08.0-new/poppler/SplashOutputDev.cc
+--- poppler-26.08.0/poppler/SplashOutputDev.cc 2026-08-02 23:16:14.000000000 +0200
++++ poppler-26.08.0-new/poppler/SplashOutputDev.cc 2026-11-13 17:49:29.906056199 +0100
+@@ -4276,6 +4276,10 @@ bool SplashOutputDev::tilingPatternFill(
+ surface_height = static_cast<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 (static_cast<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
deleted file mode 100644
index 556b4fa..0000000
--- a/poppler_CVE-2017-9083.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-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
-@@ -918,6 +918,10 @@ bool JPXStream::readCodestream()
- error(errSyntaxError, getPos(), "Different number of components in JPX SIZ marker segment");
- return false;
- }
-+ if (img.nComps == 0) {
-+ error(errSyntaxError, getPos(), "Invalid number of components in JPX SIZ marker segment");
-+ return gFalse;
-+ }
- if (img.xSize == 0 || img.ySize == 0 || img.xOffset >= img.xSize || img.yOffset >= img.ySize || img.xTileSize == 0 || img.yTileSize == 0 || img.xTileOffset > img.xOffset || img.yTileOffset > img.yOffset
- || img.xTileSize + img.xTileOffset <= img.xOffset || img.yTileSize + img.yTileOffset <= img.yOffset) {
- error(errSyntaxError, getPos(), "Error in JPX SIZ marker segment");
diff --git a/sources b/sources
index 310572c..fae7542 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (poppler-26.01.0.tar.xz) = bf00f12eb73e164d7a73756aa03ea40f66d1b5c5677acef86b1bb450289e0aa0ab7a00cac4482e08e89dfa6fead71907bc36a70ba4b0c47e30a9fd9e61451921
+SHA512 (poppler-26.08.0.tar.xz) = 8223d4aa5539dc590870c52f38762344fec2e8492e48d106280470367d66e7a3ec1d820432b01f631f2536dd0f4e2cf8ceedb3d59d9ee4191bff68f8bfea72d9
reply other threads:[~2026-11-13 16:50 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=179458862838.1.17295900583137148951.rpms-mingw-poppler-f3c45ddf0b2f@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