cve.bz

CVE-2026-39316 openprinting cups: Use After Free

6.2 mediumExploit referenceEPSS 0.2%

Medium (6.2) in openprinting cups. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.2 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39316 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39316?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39316?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39316 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openprinting:cupsthrough 2.4.16

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13cupsno fix listedDEBIAN-CVE-2026-39316
Debian14cups2.4.17-1DEBIAN-CVE-2026-39316
Ubuntu22.04:LTScups2.4.1op1-1ubuntu4.20UBUNTU-CVE-2026-39316 USN-8405-1
Ubuntu24.04:LTScups2.4.7-1.2ubuntu7.13UBUNTU-CVE-2026-39316 USN-8405-1
Ubuntu25.10cups2.4.12-0ubuntu3.9UBUNTU-CVE-2026-39316 USN-8405-1
Ubuntu26.04:LTScups2.4.16-1ubuntu1.2UBUNTU-CVE-2026-39316 USN-8405-1
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTScupsno fix listedUBUNTU-CVE-2026-39316
Red Hathummingbird:1cups, cups-lpd, cups-libs and 5 more0:2.4.17-1.hum1RHSA-2026:8814
SUSELinux Enterprise Micro 5.2, Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4 and 4 morecups2.2.7-150000.3.93.1SUSE-SU-2026:2732-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5cups1.7.5-20.67.1SUSE-SU-2026:2718-1
openSUSETumbleweedcups2.4.17-1.1openSUSE-SU-2026:10589-1
Alpinev3.20, v3.21, v3.22 and 2 morecups2.4.18-r0ALPINE-CVE-2026-39316
Azure Linux3cups2.4.17-1AZL-81935
Alpaquita23, 25, streamcups2.4.18-r0BELL-CVE-2026-39316

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate impact vulnerability in CUPS arises from a use-after-free flaw within the scheduler when temporary printers are automatically deleted. Exploitation could lead to a denial of service of the CUPS daemon, and potentially arbitrary code execution. This affects Red Hat systems running CUPS where temporary printers are configured or utilized.

Red Hat's mitigation

To mitigate this issue, restrict network access to the CUPS daemon to only trusted hosts or localhost. This can be achieved by configuring firewall rules to block access to TCP port 631 from untrusted networks. For example, using `firewalld`:

`sudo firewall-cmd --permanent --zone=public --remove-port=631/tcp`

`sudo firewall-cmd --reload`

Alternatively, configure CUPS to only listen on localhost by modifying the `Listen` directive in `/etc/cups/cupsd.conf` to `Listen localhost:631`. After modifying the configuration, the CUPS service must be restarted for changes to take effect, which may temporarily interrupt printing services:

`sudo systemctl restart cups`

ProductPackageStateAdvisory
Red Hat Hardened Imagescups-main-2.4.17-1.hum1Fixed 2026-04-17RHSA-2026:8814
Red Hat Enterprise Linux 10cupsFix deferred
Red Hat Enterprise Linux 6cupsOut of support scope
Red Hat Enterprise Linux 7cupsFix deferred
Red Hat Enterprise Linux 8cupsFix deferred
Red Hat Enterprise Linux 9cupsFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-39316.

References

Check your stackJSON