🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Peter Schlaile Mon, 30 Nov 2026 12:50
Bug#1155899: cups-daemon: 2.4.2-3+deb12u10 regression: cupsd segfaults on Send-Document for users without local account
#6863
Author: Peter Schlaile
Date: Mon, 30 Nov 2026 12:50
69 lines
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
Bug#1155899: cups-daemon: me too – confirmed regression and workaround
#7022
Author: Marcin Kocur
Date: Tue, 01 Dec 2026 16:10
94 lines
6559 bytes
This is a multi-part message in MIME format.
--------------CpcMf8lJUKMzRP2GrSqMDAhD
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello!

I can confirm this regression on Debian 12 (Bookworm), ARM64, after 
upgrading the CUPS packages from |2.4.2-3+deb12u9| to |2.4.2-3+deb12u10|.

My setup consists of a NAS running CUPS with a Brother HL-5250DN printer 
connected to it and two client PCs accessing the printer over the network.

After the upgrade, printing from both clients stopped working. CUPS 
accepted |Validate-Job| and |Create-Job| requests, but jobs failed 
during |Send-Document|. The error log repeatedly reported:

|E [Job ...] Files have gone away. |

The debug log also showed the remote username (|mk|) being used during 
|Send-Document|.

The issue appears consistent with the reported CUPS crash when handling 
print jobs from users without corresponding local system accounts.

Workaround confirmed*:* Creating the missing local system accounts on 
the NAS resolved the problem. Printing from the clients started working 
again.

|useradd --system --no-create-home --shell /usr/sbin/nologin mk|

Downgrading CUPS was therefore not necessary in my case.

This confirms that the regression affects remote printing with users 
that do not have corresponding local accounts on the CUPS server.

-- 
Pozdrawiam / Greetings
Marcin Kocur █

--------------CpcMf8lJUKMzRP2GrSqMDAhD
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>
    </p>
    <p class="x12ofw9d">Hello!</p>
    <p class="x12ofw9d">I can confirm this regression on Debian 12
      (Bookworm), ARM64, after upgrading the CUPS packages from <code>2.4.2-3+deb12u9</code>
      to <code>2.4.2-3+deb12u10</code>.</p>
    <p class="x12ofw9d">My setup consists of a NAS running CUPS with a
      Brother HL-5250DN printer connected to it and two client PCs
      accessing the printer over the network.</p>
    <p class="x12ofw9d">After the upgrade, printing from both clients
      stopped working. CUPS accepted <code>Validate-Job</code> and <code>Create-Job</code>
      requests, but jobs failed during <code>Send-Document</code>. The
      error log repeatedly reported:</p>
    <div
class="x1n2onr6 xeuugli x193iq5w xmkeg23 x1y0btm7 xdwl8eq x1w1tqly x1j6x5gx xo57heo x1usmwf1 xq6kz29">
      <pre
      class="x193iq5w xw2csxc x126k92a xj0a0fe x1ghz6dp xnxx81d x2yie3v"><code
      data-code-language="text">E [Job ...] Files have gone away.
</code></pre>
    </div>
    <p class="x12ofw9d">The debug log also showed the remote username (<code>mk</code>)
      being used during <code>Send-Document</code>.</p>
    <p class="x12ofw9d">The issue appears consistent with the reported
      CUPS crash when handling print jobs from users without
      corresponding local system accounts.</p>
    <p class="x12ofw9d">Workaround confirmed<strong>:</strong> Creating
      the missing local system accounts on the NAS resolved the problem.
      Printing from the clients started working again.</p>
    <pre
    class="x193iq5w xw2csxc x126k92a xj0a0fe x1ghz6dp xnxx81d x2yie3v"><code
    data-code-language="bash">useradd --system --no-create-home --shell /usr/sbin/nologin mk</code></pre>
    <p class="x12ofw9d">Downgrading CUPS was therefore not necessary in
      my case.</p>
    <p class="x12ofw9d">This confirms that the regression affects remote
      printing with users that do not have corresponding local accounts
      on the CUPS server.</p>
    <pre class="moz-signature" cols="72">-- 
Pozdrawiam / Greetings
Marcin Kocur █</pre>
  </body>
</html>

--------------CpcMf8lJUKMzRP2GrSqMDAhD--
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