Skip to content
OpenAdvisories
Medium · 4.0 CVE-2026-39316 EUVD-2026-19806

CUPS has a use-after-free in `cupsdDeleteTemporaryPrinters` via dangling subscription pointer

Published Apr 7, 2026 · Updated Apr 9, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
OpenPrinting cups <= 2.4.16 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cups 2.4.17-1 —
Debian 13 cups No fix yet —
Debian 12 cups No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS cups 2.4.16-1ubuntu1.2 USN-8405-1
Ubuntu 25.10 cups 2.4.12-0ubuntu3.9 USN-8405-1
Ubuntu 24.04 LTS cups 2.4.7-1.2ubuntu7.13 USN-8405-1
Ubuntu 22.04 LTS cups 2.4.1op1-1ubuntu4.20 USN-8405-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS cups No fix yet —
Ubuntu Pro 18.04 LTS cups No fix yet —
Ubuntu Pro 16.04 LTS cups No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 cups +7 2.4.17-1.hum1 RHSA-2026:8814
ReleasePackageFixed inAdvisory
SLES 15 SP7 cups 2.2.7-150000.3.93.1 SUSE-SU-2026:2732-1
SLES 12 SP5 cups 1.7.5-20.67.1 SUSE-SU-2026:2718-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 5.5 cups 2.2.7-150000.3.93.1 SUSE-SU-2026:2732-1
SLE Micro 5.4 cups 2.2.7-150000.3.93.1 SUSE-SU-2026:2732-1
SLE Micro 5.3 cups 2.2.7-150000.3.93.1 SUSE-SU-2026:2732-1
SLE Micro 5.2 cups 2.2.7-150000.3.93.1 SUSE-SU-2026:2732-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cups 2.4.17-1.1 openSUSE-SU-2026:10589-1
ReleasePackageFixed inAdvisory
Alpine v3.24 cups 2.4.18-r0 —
Alpine v3.23 cups 2.4.18-r0 —
Alpine v3.22 cups 2.4.18-r0 —
Alpine v3.21 cups 2.4.18-r0 —
Alpine v3.20 cups 2.4.18-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 cups +7 1:2.4.16-1.amzn2023.0.3 ALAS2023-2026-1635

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 cups 2.4.17-1 —

Advisories 7

References