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

- Severity: Medium 4.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-07T17:00:26.801Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- OpenPrinting cups: <= 2.4.16; up to 2.4.16

## Every score

- GitHub_M: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: 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`

## References

- <https://github.com/OpenPrinting/cups/security/advisories/GHSA-pjv5-prqp-46rg> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-39316](https://www.cve.org/CVERecord?id=CVE-2026-39316), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2026-39316](https://nvd.nist.gov/vuln/detail/CVE-2026-39316), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39316 · Whole record: https://cve.day/CVE-2026-39316.json · Rebuilt by cve.day 2026-11-25T22:59:18.140Z
