Skip to content
Fencer Vulns
medium 4.0

CVE-2026-39316 json

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

published 2026-04-07 7 mo ago modified 2026-10-26 13 d ago also EUVD-2026-19806

cvss
4.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 8%
public exploits
0
none known

Summary

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.

Patch / fix

  • cups Debian 14 2.4.17-1

debian advisories DEBIAN-CVE-2026-39316

  • cups Ubuntu 22.04 LTS 2.4.1op1-1ubuntu4.20
  • cups Ubuntu 24.04 LTS 2.4.7-1.2ubuntu7.13
  • cups Ubuntu 25.10 2.4.12-0ubuntu3.9
  • cups Ubuntu 26.04 LTS 2.4.16-1ubuntu1.2

ubuntu advisories UBUNTU-CVE-2026-39316

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • cups hummingbird 1 2.4.17-1.hum1
  • cups-lpd hummingbird 1 2.4.17-1.hum1
  • cups-libs hummingbird 1 2.4.17-1.hum1
  • cups-client hummingbird 1 2.4.17-1.hum1
  • cups-ipptool hummingbird 1 2.4.17-1.hum1
  • cups-filesystem hummingbird 1 2.4.17-1.hum1
  • cups-printerapp hummingbird 1 2.4.17-1.hum1

red hat advisories RHSA-2026:8814

  • cups SLE Module for Development Tools 15 SP7, SLE Module for Desktop Applications 15 SP7, SLE Module for Basesystem 15 SP7 +4 more 2.2.7-150000.3.93.1
  • cups SLES LTSS Extended Security 12 SP5 1.7.5-20.67.1

suse advisories SUSE-SU-2026:2732-1SUSE-SU-2026:2718-1

  • cups openSUSE Tumbleweed 2.4.17-1.1

opensuse advisories openSUSE-SU-2026:10589-1

  • cups Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 2.4.18-r0

alpine advisories ALPINE-CVE-2026-39316

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • cups Azure Linux 3.0 2.4.17-1

azure linux advisories AZL-81935

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-39316 updated cvss 4.0

cups: CUPS: Denial of Service and potential arbitrary code execution via use-after-free vulnerability when deleting temporary printers.

  • Red Hat Enterprise Linux 6 cups, cups-lpd, cups-php, cups-libs
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 7 cups, cups-lpd, cups-libs, cups-client, cups-ipptool, cups-filesystem Red Hat Enterprise Linux 8 cups, cups-lpd, cups-libs, cups-client, cups-ipptool, cups-filesystem Red Hat Enterprise Linux 9 cups, cups-lpd, cups-libs, cups-client, cups-ipptool, cups-filesystem, +1 more Red Hat Enterprise Linux 10 cups Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Hardened Images cups 2.4.17-1.hum1, cups-lpd 2.4.17-1.hum1, cups-libs 2.4.17-1.hum1, cups-client 2.4.17-1.hum1, cups-ipptool 2.4.17-1.hum1, cups-filesystem 2.4.17-1.hum1, +1 more
    fixed: vendor fix RHSA-2026:8814

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
7 mo ago

Exploit prediction

0.18% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/OpenPrinting/cups/security/advisories/GHSA-pjv5-prqp-46rg referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 4.0 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 3.1 6.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

  • OpenPrinting cups

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.