CVE-2026-39316CWE-416

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

Medium · published April 7, 2026

CVSS v3.1
4.0
EPSS
0%
Percentile
7.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.0 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00182 · 7.4th percentile
Weakness
CWE-416 · Use After Free
Published
2026-04-07T17:00Z
EPSS history
Timeline
  • 07 APR 17:00Z
    CUPS has a use-after-free in `cupsdDeleteTemporaryPrinters` via dangling subscription pointer
    cvelistv5