This is a use-after-free in cupsd, and it is fixed upstream. It still happens with 2.4.16-1ubuntu1.3 on Ubuntu 26.04: cupsd aborted 3 times in 9 days here (2026-11-10, 11-14, 11-17).
Root cause (upstream issue https://github.com/OpenPrinting/cups/issues/1722): create_local_bg_thread() generates the IPP Everywhere PPD for a driverless queue in a background thread. If the queue is deleted with CUPS-Delete-Printer while that thread is still running, cupsdDeletePrinter() frees the printer anyway. The thread then writes into freed memory, and the next allocation aborts with "corrupted double-linked list". cups-browsed triggers this when it quickly replaces a discovered queue. The stack trace is identical in all 3 crashes (symbolized with debuginfod): main thread: __libc_calloc <- cupsdAddPrinter (printers.c:75) <- add_printer (ipp.c:2264) <- cupsdReadClient (ipp.c:526) <- main other thread: __pthread_rwlock_wrlock <- create_local_bg_thread (ipp.c:5473) error_log (LogLevel debug) just before the crash on 2026-11-14: D [14/Nov/2026:00:18:41 +0100] HL_L2300D_BRLASER_hl_l2300d: Generating PPD file from "ipps://hl-l2300d.local:631/printers/HL-L2300D-BRLASER"... D [14/Nov/2026:00:18:41 +0100] CUPS-Delete-Printer ipp://localhost/printers/HL_L2300D_BRLASER_hl_l2300d I [14/Nov/2026:00:18:41 +0100] Printer "HL_L2300D_BRLASER_hl_l2300d" deleted by "cups-browsed". D [14/Nov/2026:00:18:41 +0100] (null): Connected to hl-l2300d.local:631, sending Get-Printer-Attributes request... D [14/Nov/2026:00:18:41 +0100] CUPS-Add-Modify-Printer ipp://localhost/printers/HL_L2300D_BRLASER_hl_l2300d -> cupsd: corrupted double-linked list (SIGABRT) The "(null)" is printer->name of the already freed printer. The crash on 2026-11-17 shows the same sequence (Delete-Printer while "Generating PPD file", then Add-Modify-Printer). Upstream fixes on the 2.4.x branch, released in CUPS 2.4.20: - https://github.com/OpenPrinting/cups/commit/807e99c3dc "Protect against early deletion of IPP Everywhere printer (Issue #1655)" - https://github.com/OpenPrinting/cups/commit/eb06fe2bf2 "Fix potential scheduler printer use-after-free bug (Issue #1722)" - https://github.com/OpenPrinting/cups/commit/2074ceb2a "Minor logic fix for (Issue #1722)" None of these are in 2.4.16-1ubuntu1.3. Could they be backported (SRU) to the supported releases? #1722 builds on the printer->use counting added by #1655, so all three are probably needed. A cupsd crash also restarts cups-browsed. Because cups.socket is still listening at that moment, cups-browsed hangs until systemd kills it after 90 s, so printing is down for about 90 s per crash. That part is reported separately as https://github.com/OpenPrinting/cups- browsed/issues/84. ** Bug watch added: github.com/OpenPrinting/cups/issues #1722 https://github.com/OpenPrinting/cups/issues/1722 ** Bug watch added: github.com/OpenPrinting/cups-browsed/issues #84 https://github.com/OpenPrinting/cups-browsed/issues/84 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2085091 Title: cupsd assert failure: corrupted double-linked list To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/2085091/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
