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

- Priority: **Routine**
- Reason: Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-07 · Modified: 2026-04-09
- Aliases: ALPINE-CVE-2026-39316, UBUNTU-CVE-2026-39316, DEBIAN-CVE-2026-39316
- Record: https://cvemate.com/vulnerability/CVE-2026-39316 · JSON: https://cvemate.com/vulnerability/CVE-2026-39316/json

## Description

```text
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.
```

## Signals

- CVSS: 6.2 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.208%, percentile 11.506%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine cups (Alpine Linux): \< 2.4.18-r0
- debian cups (Debian): All versions (No fix recorded) \| \< 2.4.2-3+deb12u10 \| \< 2.4.17-1
- ubuntu cups (Ubuntu): All versions (No fix recorded) \| \< 2.4.1op1-1ubuntu4.20 \| \< 2.4.7-1.2ubuntu7.13 \| \< 2.4.12-0ubuntu3.9 \| \< 2.4.16-1ubuntu1.2
- openprinting cups: ≤ 2.4.16

## References

- <https://github.com/OpenPrinting/cups/security/advisories/GHSA-pjv5-prqp-46rg>
- <https://security.alpinelinux.org/vuln/CVE-2026-39316>
- <https://ubuntu.com/security/CVE-2026-39316>
- <https://www.cve.org/CVERecord?id=CVE-2026-39316>
- <https://ubuntu.com/security/notices/USN-8405-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-39316>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39316>

---

Data as of 2026-12-05T03:09:42.249Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
