Article View: linux.debian.bugs.dist
Article #6873Bug#1155907: libcups2: 2.4.2-3+deb12u10 regression: GTK print dialog hangs at 100% CPU (missing follow-up to CVE-2025-58436 fix)
From: Peter Schlaile
Date: Mon, 30 Nov 2026 13:50
Date: Mon, 30 Nov 2026 13:50
104 lines
6216 bytes
6216 bytes
--=-0GEgw0QAf42nKPVFumwZ
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Package: libcups2
Version: 2.4.2-3+deb12u10
Severity: important
Tags: patch upstream regression
Control: affects -1 evince atril libgtk-3-0
X-Debbugs-Cc: debian-lts@lists.debian.org, debian@alteholz.de
Dear Maintainer,
after the DLA-4952-1 update (cups 2.4.2-3+deb12u10), opening the print
dialog in evince on bookworm freezes the application at 100% CPU. It
has to be killed. cupsd itself is fine.
strace shows an endless loop without any read():
poll([{fd=3D12, events=3DPOLLIN}], 1, 0) =3D 1 ([{fd=3D12, revents=3DPOLL=
IN}])
poll([{fd=3D12, events=3DPOLLIN}], 1, 0) =3D 1 ([{fd=3D12, revents=3DPOLL=
IN}])
...
fd 12 is the Unix socket to cupsd. It holds the complete, unread
response (Recv-Q 1222). The cupsd debug log shows the request was
answered normally:
[Client 2] Returning IPP successful-ok for CUPS-Get-Printers (no URI)
from localhost.
Backtrace of the main thread:
#0 poll (nfds=3D1, timeout=3D0)
#1 _httpWait () from libcups.so.2
#2 ?? () from .../printbackends/libprintbackend-cups.so
#3 gtk_cups_request_read_write () from .../libprintbackend-cups.so
#4 ?? () from .../libprintbackend-cups.so
#5 g_main_context_check () from libglib-2.0.so.0
Cause: debian/patches/CVE-2025-58436.patch (upstream 5d414f1f91bd)
changes _httpUpdate() to wait for a complete line on non-blocking
connections. However, it only reads more data while the buffer is
already non-empty:
if (http->used > 0 && !memchr(...) && (size_t)http->used <
sizeof(http->buffer))
With an empty buffer it returns HTTP_STATUS_CONTINUE without reading.
The GTK print backend therefore polls forever. Upstream fixed this in
2.4.16 with commit 2dc021f33a3e "Fix an infinite loop issue in GTK+"
(https://github.com/OpenPrinting/cups/issues/1439). That follow-up was
not included in deb12u10.
This is the same issue as #1121906 and #1121908 in unstable (fixed in
2.4.16-1).
The attached patch (upstream 2dc021f33a3e, cups/http.c only) applies
after CVE-2025-58436.patch. With it applied on top of deb12u10
(tested on two bookworm machines), the print dialog opens normally
again and jobs are submitted.
(Jobs whose options contain spaces then crash cupsd; that is a separate
deb12u10 regression in CVE-2026-34980.patch, reported separately.)
Related deb12u10 regression in cupsd: #1155899.
Regards,
Peter Schlaile
--=-0GEgw0QAf42nKPVFumwZ
Content-Disposition: attachment; filename="CVE-2025-58436-2.patch"
Content-Transfer-Encoding: base64
Content-Type: text/x-patch; name="CVE-2025-58436-2.patch"; charset="UTF-8"
RnJvbTogTWljaGFlbCBSIFN3ZWV0IDxtc3dlZXRAbXN3ZWV0Lm9yZz4KU3ViamVjdDogRml4IGFu
IGluZmluaXRlIGxvb3AgaXNzdWUgaW4gR1RLKyAoSXNzdWUgIzE0MzkpCiBDVkUtMjAyNS01ODQz
Ni5wYXRjaCBtYWtlcyBfaHR0cFVwZGF0ZSgpIHdhaXQgZm9yIGEgY29tcGxldGUgbGluZSBvbgog
bm9uLWJsb2NraW5nIGNvbm5lY3Rpb25zLCBidXQgaXQgb25seSByZWFkcyBtb3JlIGRhdGEgd2hl
biB0aGUgYnVmZmVyCiBhbHJlYWR5IGhvbGRzIHNvbWV0aGluZy4gV2l0aCBhbiBlbXB0eSBidWZm
ZXIgaXQgcmVwb3J0cwogSFRUUF9TVEFUVVNfQ09OVElOVUUgd2l0aG91dCByZWFkaW5nLCBzbyBj
YWxsZXJzIHBvbGxpbmcgZm9yIHRoZQogcmVzcG9uc2UgKEdUSyBwcmludCBiYWNrZW5kOiBldmlu
Y2UsIGF0cmlsLCBwYXBlcnMpIHNwaW4gZm9yZXZlciBhdAogMTAwJSBDUFUuCk9yaWdpbjogdXBz
dHJlYW0sIGh0dHBzOi8vZ2l0aHViLmNvbS9PcGVuUHJpbnRpb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0dHAtPnVzZWQsIC8qdGltZW91dCovMCkpID4gMCkK
Cg==
--=-0GEgw0QAf42nKPVFumwZ--
Technical Details
Message-ID:
<O59Vw-f7Td-15@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Peter Schlaile <peter@schlaile.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155907: libcups2: 2.4.2-3+deb12u10 regression: GTK print dialog hangs at 100% CPU (missing follow-up to CVE-2025-58436 fix) Date: Mon, 30 Nov 2026 14:50:02 +0100 Message-ID: <O59Vw-f7Td-15@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 30 13:43:12 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Peter Schlaile <peter@schlaile.de>, 1155907@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-lts@lists.debian.org, debian@alteholz.de, debian-printing@lists.debian.org X-Debian-Pr-Message: report 1155907 X-Debian-Pr-Package: libcups2 X-Debian-Pr-Keywords: patch upstream X-Debian-Pr-Source: cups Content-Type: multipart/mixed; boundary="=-0GEgw0QAf42nKPVFumwZ" User-Agent: Evolution 3.46.4-2+deb12u1 MIME-Version: 1.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006078 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 104 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-lts@lists.debian.org, Thorsten Alteholz <debian@alteholz.de> X-Original-Date: Mon, 30 Nov 2026 14:40:58 +0100 X-Original-Message-ID: <26a3bf3f3ec5de94cc78f27eac6f2c55a4bc4700.camel@schlaile.de>