p PatchFirst

CVE-2026-39316

CVE-2026-39316 · CUPS has a use-after-free in `cupsdDeleteTemporaryPrinters` via dangling subscription pointer

This page contains facts from public vulnerability sources. Check the original advisory before updating.

OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. In versions 2.4.16 and prior, a use-after-free vulnerability exists in the CUPS scheduler (cupsd) when temporary printers are automatically deleted. cupsdDeleteTemporaryPrinters() in scheduler/printers.c calls cupsdDeletePrinter() without first expiring subscriptions that reference the printer, leaving cupsd_subscription_t.dest as a dangling pointer to freed heap memory. The dangling pointer is subsequently dereferenced at multiple code sites, causing a crash (denial of service) of the cupsd daemon. With heap grooming, this can be leveraged for code execution.

CVSS 4.0 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • cups

    Versions
    • <= 2.4.16: Affected

    No fix published

  • cups Debian:12

    Versions
    • 2.4.10-1
    • 2.4.10-2
    • 2.4.10-3
    • 2.4.10-4
    • 2.4.14-1
    • 2.4.15-1
    • 2.4.16-1
    • 2.4.17-1
    • 2.4.18-1
    • 2.4.2-3
    • 2.4.2-3+deb12u1
    • 2.4.2-3+deb12u2
    • 2.4.2-3+deb12u3
    • 2.4.2-3+deb12u4
    • 2.4.2-3+deb12u5
    • 2.4.2-3+deb12u6
    • 2.4.2-3+deb12u7
    • 2.4.2-3+deb12u8
    • 2.4.2-3+deb12u9
    • 2.4.2-4
    • 2.4.2-5
    • 2.4.2-6
    • 2.4.7-1
    • 2.4.7-1.1
    • 2.4.7-1.2
    • 2.4.7-2
    • 2.4.7-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cups Debian:13

    Versions
    • 2.4.10-3
    • 2.4.10-3+deb13u1
    • 2.4.10-3+deb13u2
    • 2.4.10-4
    • 2.4.14-1
    • 2.4.15-1
    • 2.4.16-1
    • 2.4.17-1
    • 2.4.18-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cups Debian:14

    Versions
    • 2.4.10-3
    • 2.4.10-4
    • 2.4.14-1
    • 2.4.15-1
    • 2.4.16-1
    Affected ranges
    • ECOSYSTEM: < 2.4.17-1

    Update to 2.4.17-1

  • cups Ubuntu:Pro:16.04:LTS

    Versions
    • 2.1.0-4ubuntu3
    • 2.1.0-5
    • 2.1.0-6
    • 2.1.0-6ubuntu1
    • 2.1.0-7
    • 2.1.2-1
    • 2.1.2-2
    • 2.1.3-1
    • 2.1.3-1build1
    • 2.1.3-3
    • 2.1.3-4
    • 2.1.3-4ubuntu0.2
    • 2.1.3-4ubuntu0.3
    • 2.1.3-4ubuntu0.4
    • 2.1.3-4ubuntu0.5
    • 2.1.3-4ubuntu0.6
    • 2.1.3-4ubuntu0.7
    • 2.1.3-4ubuntu0.8
    • 2.1.3-4ubuntu0.9
    • 2.1.3-4ubuntu0.10
    • 2.1.3-4ubuntu0.11
    • 2.1.3-4ubuntu0.11+esm1
    • 2.1.3-4ubuntu0.11+esm2
    • 2.1.3-4ubuntu0.11+esm3
    • 2.1.3-4ubuntu0.11+esm4
    • 2.1.3-4ubuntu0.11+esm5
    • 2.1.3-4ubuntu0.11+esm6
    • 2.1.3-4ubuntu0.11+esm7
    • 2.1.3-4ubuntu0.11+esm8
    • 2.1.3-4ubuntu0.11+esm9
    • 2.1.3-4ubuntu0.11+esm11
    • 2.1.3-4ubuntu0.11+esm12
    • 2.1.3-4ubuntu0.11+esm13
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cups Ubuntu:Pro:18.04:LTS

    Versions
    • 2.2.4-7ubuntu2
    • 2.2.5-2
    • 2.2.6-2
    • 2.2.6-3
    • 2.2.6-4
    • 2.2.6-5
    • 2.2.7-1ubuntu1
    • 2.2.7-1ubuntu2
    • 2.2.7-1ubuntu2.1
    • 2.2.7-1ubuntu2.2
    • 2.2.7-1ubuntu2.3
    • 2.2.7-1ubuntu2.4
    • 2.2.7-1ubuntu2.5
    • 2.2.7-1ubuntu2.6
    • 2.2.7-1ubuntu2.7
    • 2.2.7-1ubuntu2.8
    • 2.2.7-1ubuntu2.9
    • 2.2.7-1ubuntu2.10
    • 2.2.7-1ubuntu2.10+esm1
    • 2.2.7-1ubuntu2.10+esm2
    • 2.2.7-1ubuntu2.10+esm3
    • 2.2.7-1ubuntu2.10+esm4
    • 2.2.7-1ubuntu2.10+esm5
    • 2.2.7-1ubuntu2.10+esm6
    • 2.2.7-1ubuntu2.10+esm7
    • 2.2.7-1ubuntu2.10+esm9
    • 2.2.7-1ubuntu2.10+esm10
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cups Ubuntu:Pro:20.04:LTS

    Versions
    • 2.2.12-2ubuntu1
    • 2.3.0-6
    • 2.3.0-7
    • 2.3.0-7ubuntu1
    • 2.3.1-1ubuntu1
    • 2.3.1-2
    • 2.3.1-4
    • 2.3.1-7
    • 2.3.1-9ubuntu1
    • 2.3.1-9ubuntu1.1
    • 2.3.1-9ubuntu1.2
    • 2.3.1-9ubuntu1.3
    • 2.3.1-9ubuntu1.4
    • 2.3.1-9ubuntu1.5
    • 2.3.1-9ubuntu1.6
    • 2.3.1-9ubuntu1.7
    • 2.3.1-9ubuntu1.8
    • 2.3.1-9ubuntu1.9
    • 2.3.1-9ubuntu1.9+esm1
    • 2.3.1-9ubuntu1.9+esm3
    • 2.3.1-9ubuntu1.9+esm4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cups Ubuntu:22.04:LTS

    Versions
    • 2.3.3op2-7ubuntu2
    • 2.4.1op1-1ubuntu1
    • 2.4.1op1-1ubuntu2
    • 2.4.1op1-1ubuntu3
    • 2.4.1op1-1ubuntu4
    • 2.4.1op1-1ubuntu4.1
    • 2.4.1op1-1ubuntu4.2
    • 2.4.1op1-1ubuntu4.4
    • 2.4.1op1-1ubuntu4.6
    • 2.4.1op1-1ubuntu4.7
    • 2.4.1op1-1ubuntu4.8
    • 2.4.1op1-1ubuntu4.9
    • 2.4.1op1-1ubuntu4.10
    • 2.4.1op1-1ubuntu4.11
    • 2.4.1op1-1ubuntu4.12
    • 2.4.1op1-1ubuntu4.15
    • 2.4.1op1-1ubuntu4.16
    Affected ranges
    • ECOSYSTEM: < 2.4.1op1-1ubuntu4.20

    Update to 2.4.1op1-1ubuntu4.20

  • cups Ubuntu:24.04:LTS

    Versions
    • 2.4.6-0ubuntu3
    • 2.4.7-1.2ubuntu2
    • 2.4.7-1.2ubuntu3
    • 2.4.7-1.2ubuntu7
    • 2.4.7-1.2ubuntu7.1
    • 2.4.7-1.2ubuntu7.2
    • 2.4.7-1.2ubuntu7.3
    • 2.4.7-1.2ubuntu7.4
    • 2.4.7-1.2ubuntu7.7
    • 2.4.7-1.2ubuntu7.9
    Affected ranges
    • ECOSYSTEM: < 2.4.7-1.2ubuntu7.13

    Update to 2.4.7-1.2ubuntu7.13

  • cups Ubuntu:25.10

    Versions
    • 2.4.12-0ubuntu1
    • 2.4.12-0ubuntu2
    • 2.4.12-0ubuntu3
    • 2.4.12-0ubuntu3.3
    • 2.4.12-0ubuntu3.5
    Affected ranges
    • ECOSYSTEM: < 2.4.12-0ubuntu3.9

    Update to 2.4.12-0ubuntu3.9

  • cups Ubuntu:26.04:LTS

    Versions
    • 2.4.12-0ubuntu3
    • 2.4.12-0ubuntu5
    • 2.4.16-1ubuntu1
    Affected ranges
    • ECOSYSTEM: < 2.4.16-1ubuntu1.2

    Update to 2.4.16-1ubuntu1.2

Original sources

Check your server →