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