<div dir="ltr"><div><div dir="auto">Hi,<br><br>Here is a candidate fix for CVE-2026-93653 (CPU-exhaustion DoS in tiling<br>pattern fills). It is still open in all suites and marked no-dsa/minor, so<br>this is a patch for a future maintainer upload rather than a request for a<br>DSA.<br><br>Root cause: Gfx::doTilingPatternFill() derives the per-axis tile index<br>ranges (xi0..xi1, yi0..yi1) from the clip region divided by the pattern<br>step. A pattern whose step is tiny relative to the filled region therefore<br>yields a tile grid bounded only by the page geometry, up to roughly INT_MAX<br>on each axis. Both the Splash tiling fast path (through the x1-x0 / y1-y0<br>arguments of OutputDev::tilingPatternFill) and the drawForm() fallback loop<br>iterate the whole grid, so a small crafted PDF keeps the renderer at 100%<br>CPU for an attacker-controlled duration while allocating almost no memory.<br>The checkedMultiply() guard added for CVE-2026-10118 only rejects integer<br>overflow inside SplashOutputDev, after which rendering falls back to this<br>equally unbounded loop.<br><br>Fix: cap the number of tiles at 0x800000 (the ceiling already used in<br>SplashOutputDev::tilingPatternFill), shrinking both axes proportionally.<br>Legitimate patterns render unchanged; an abusive grid renders a bounded<br>subset instead of hanging.<br><br>Attached (DEP-3):<br>  CVE-2026-93653-poppler-trixie.patch     applies to 25.03.0-5+deb13u4<br>  CVE-2026-93653-poppler-bookworm.patch   applies to 22.12.0-2+deb12u2<br><br>Both are the same one-hunk change to poppler/Gfx.cc and I verified each<br>applies cleanly to the packaged source. The inserted block uses only<br>symbols already present in Gfx.cc (error/errSyntaxWarning/getPos and sqrt<br>from <cmath>).<br><br>Testing: I build- and runtime-tested the identical change against current<br>upstream master. A crafted 707-byte PDF that otherwise pegs a core for<br>about 82 seconds returns in ~0.012 s with the cap; a normal tiling-pattern<br>PDF renders byte-for-byte identically (same output hash). I did not rebuild<br>each packaged version separately, since the change and its surrounding code<br>are the same.<br><br>The same fix was submitted to the poppler mailing list on 2026-11-06<br>(subject "[PATCH] Bound the tile count in tiling pattern fills"). sid and<br>forky (26.07.0) can use that upstream patch as-is; the trixie/bookworm<br>versions attached here differ only because those branches still use the<br>older (int) cast style around the fix site.<br><br>Regards,<br>Sumit</div></div></div>