diff --git a/SOURCES/poppler-20.11.0-tilingPatternFill-overflow.patch b/SOURCES/poppler-20.11.0-tilingPatternFill-overflow.patch new file mode 100644 index 0000000..c77210d --- /dev/null +++ b/SOURCES/poppler-20.11.0-tilingPatternFill-overflow.patch @@ -0,0 +1,29 @@ +--- poppler-20.11.0/poppler/SplashOutputDev.cc ++++ poppler-20.11.0/poppler/SplashOutputDev.cc +@@ -43,6 +43,7 @@ + // Copyright (C) 2018 Adam Reichold + // Copyright (C) 2019 Christian Persch + // Copyright (C) 2020 Oliver Sander ++// Copyright (C) 2026 Marek Kasik + // + // To see a description of the changes please see the Changelog file that + // came with your tarball or type make ChangeLog if you are building from git +@@ -4299,7 +4300,7 @@ bool SplashOutputDev::tilingPatternFill( + matc[2] = ctm[2]; + matc[3] = ctm[3]; + +- if (surface_width == 0 || surface_height == 0 || repeatX * repeatY <= 4) { ++ if (surface_width == 0 || surface_height == 0 || repeatX * repeatY <= 4 || checkedMultiply(surface_width, repeatX, &result_width) || checkedMultiply(surface_height, repeatY, &result_height)) { + state->setCTM(savedCTM[0], savedCTM[1], savedCTM[2], savedCTM[3], savedCTM[4], savedCTM[5]); + return false; + } +@@ -4347,9 +4348,6 @@ bool SplashOutputDev::tilingPatternFill( + imgData.repeatY = repeatY; + SplashBitmap *tBitmap = bitmap; + bitmap = formerBitmap; +- result_width = tBitmap->getWidth() * imgData.repeatX; +- result_height = tBitmap->getHeight() * imgData.repeatY; +- + if (splashAbs(matc[1]) > splashAbs(matc[0])) { + kx = -matc[1]; + ky = matc[2] - (matc[0] * matc[3]) / matc[1]; diff --git a/SPECS/poppler.spec b/SPECS/poppler.spec index 762b132..6786449 100644 --- a/SPECS/poppler.spec +++ b/SPECS/poppler.spec @@ -4,7 +4,7 @@ Summary: PDF rendering library Name: poppler Version: 20.11.0 -Release: 13%{?dist} +Release: 14%{?dist} License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT URL: http://poppler.freedesktop.org/ Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.xz @@ -54,6 +54,9 @@ Patch31: poppler-20.11.0-pdfinfo-dests.patch # https://issues.redhat.com/browse/RHEL-131786 Patch32: poppler-20.11.0-check-bitmap-in-combine.patch +# https://issues.redhat.com/browse/RHEL-180567 +Patch33: poppler-20.11.0-tilingPatternFill-overflow.patch + BuildRequires: cmake BuildRequires: gettext-devel BuildRequires: pkgconfig(cairo) @@ -258,6 +261,10 @@ test "$(pkg-config --modversion poppler-splash)" = "%{version}" %{_mandir}/man1/* %changelog +* Sun May 31 2026 Marek Kasik - 20.11.0-14 +- Fix integer overflow in tilingPatternFill (CVE-2026-10118) +- Resolves: RHEL-180567 + * Tue Dec 16 2025 Marek Kasik - 20.11.0-13 - Check bitmap in combine() - Resolves: RHEL-131786