Article View: linux.debian.bugs.dist
Article #6863Bug#1155899: cups-daemon: 2.4.2-3+deb12u10 regression: cupsd segfaults on Send-Document for users without local account
From: Peter Schlaile
Date: Mon, 30 Nov 2026 12:50
Date: Mon, 30 Nov 2026 12:50
69 lines
4312 bytes
4312 bytes
Package: cups-daemon
Version: 2.4.2-3+deb12u10
Severity: grave
Tags: regression security patch upstream
Dear Maintainer,
after today's bookworm-security update from 2.4.2-3+deb12u9 to
2.4.2-3+deb12u10, cupsd crashes with a NULL pointer dereference
whenever a job is submitted for a user name that does not exist on the
CUPS server.
We hit this with cups-lpd: print jobs coming in via LPD from other
hosts carry the remote user name, which has no local account on the
print server. cups-lpd submits them as Create-Job + Send-Document, and
cupsd dies while authorizing the Send-Document request:
D [...] [Job 6848] Queued on "EPSON_TM-P2.01" by "kkasse".
D [...] [Client 1] 2.0 Send-Document 3
D [...] Send-Document ipp://localhost/jobs/6848
D [...] cupsdIsAuthorized: requesting-user-name="kkasse"
(cupsd restarts)
kernel: cupsd[4570]: segfault at 0 ip 000055d14fb2c76d sp
00007ffda485a7e0
error 4 in cupsd[55d14fb27000+4c000]
systemd[1]: cups.service: Main process exited, code=killed,
status=11/SEGV
Jobs for users that exist locally (e.g. root) print fine. Creating a
local
system account for the remote user name works around the crash.
Cause: debian/patches/CVE-2026-27447.patch (backport of upstream
a0c62c1e6960) changes the @OWNER check in cupsdIsAuthorized()
(scheduler/auth.c) to
where pw = getpwnam(username) is NULL for unknown users. The default
policy
has "Require user @OWNER @SYSTEM" for Send-Document, so every such job
crashes the scheduler.
Upstream fixed this on the 2.4.x branch in follow-up commits that are
not part of deb12u10:
6d97ee39fedf Fix cupsd crash if user does not exist on server
849fba7d7a11 Fix unauthenticated print policies (Issue #1557)
Current upstream 2.4.x reads:
if (!_cups_strcasecmp(name, "@OWNER") && owner &&
((pw && !strcmp(pw->pw_name, ownername)) ||
(!pw && type == CUPSD_AUTH_NONE &&
!_cups_strcasecmp(username, ownername))))
Please add these two commits to the bookworm-security package.
Severity/security: any host that may submit jobs (e.g. via cups-lpd or
an IPP listener reachable from the network) can crash cupsd with an
arbitrary non-existent requesting-user-name, i.e. an unauthenticated
denial of service. After a few crashes in a row systemd's start limit
can leave the scheduler stopped. Please lower the severity if you think
"grave" is too high.
System: Debian 12 (bookworm), amd64, cups-daemon 2.4.2-3+deb12u10,
installed by unattended-upgrades.
Kind Regards,
Peter Schlaile
Technical Details
Message-ID:
<O58Zr-f7mr-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Peter Schlaile <peter@schlaile.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155899: cups-daemon: 2.4.2-3+deb12u10 regression: cupsd segfaults on Send-Document for users without local account Date: Mon, 30 Nov 2026 13:50:01 +0100 Message-ID: <O58Zr-f7mr-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 30 12:49:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -0.451 Reply-To: Peter Schlaile <peter@schlaile.de>, 1155899@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-printing@lists.debian.org X-Debian-Pr-Message: report 1155899 X-Debian-Pr-Package: cups-daemon X-Debian-Pr-Keywords: patch security upstream X-Debian-Pr-Source: cups Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2+deb12u1 MIME-Version: 1.0 X-Greylist: delayed 399 seconds by postgrey-1.37 at buxtehude; Mon, 30 Nov 2026 12:47:42 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006067 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 69 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 13:40:58 +0100 X-Original-Message-ID: <51be7a8e951d2cfca52063f974c47d4cd6a9f802.camel@schlaile.de>