Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Peter Schlaile
Mon, 30 Nov 2026 13:50
Bug#1155907: libcups2: 2.4.2-3+deb12u10 regression: GTK print dialog hangs at 100% CPU (missing follow-up to CVE-2025-58436 fix)
Author: 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
dHJlYW0sIGh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m
KGh0dHAtPmJ1ZmZlcikgLSAoc2l6ZV90KWh0dHAtPnVzZWQsIC8qdGltZW91dCovMCkpID4gMCkK
Cg==
--=-0GEgw0QAf42nKPVFumwZ--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads