Vulnerability · Published Apr 7, 2026 · Assigned by GitHub_M

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

Medium 4.0

In plain English

A medium-severity use-after-free in cups from OpenPrinting. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.2%top 91.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20cups2.4.18-r0ALPINE-CVE-2026-39316
Alpine:v3.21cups2.4.18-r0ALPINE-CVE-2026-39316
Alpine:v3.22cups2.4.18-r0ALPINE-CVE-2026-39316
Alpine:v3.23cups2.4.18-r0ALPINE-CVE-2026-39316
Alpine:v3.24cups2.4.18-r0ALPINE-CVE-2026-39316
Debian:12cupsno fix listedDEBIAN-CVE-2026-39316
Debian:13cupsno fix listedDEBIAN-CVE-2026-39316
Debian:14cups2.4.17-1DEBIAN-CVE-2026-39316
Ubuntu:22.04:LTScups2.4.1op1-1ubuntu4.20USN-8405-1
Ubuntu:22.04:LTScups2.4.1op1-1ubuntu4.20UBUNTU-CVE-2026-39316
Ubuntu:24.04:LTScups2.4.7-1.2ubuntu7.13USN-8405-1
Ubuntu:24.04:LTScups2.4.7-1.2ubuntu7.13UBUNTU-CVE-2026-39316
Ubuntu:25.10cups2.4.12-0ubuntu3.9USN-8405-1
Ubuntu:25.10cups2.4.12-0ubuntu3.9UBUNTU-CVE-2026-39316
Ubuntu:26.04:LTScups2.4.16-1ubuntu1.2UBUNTU-CVE-2026-39316
Ubuntu:26.04:LTScups2.4.16-1ubuntu1.2USN-8405-1

Affected products (as reported)

VendorProductVersions
OpenPrinting cups <= 2.4.16

Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References