CVE-2026-39316
JSON

4.0medium

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

Severity
4.0medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
OpenPrinting cups<= 2.4.16, up to 2.4.16CVE List, NVD

All scores

GitHub_M4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

OpenPrinting CUPS es un sistema de impresión de código abierto para Linux y otros sistemas operativos tipo Unix. En las versiones 2.4.16 y anteriores, existe una vulnerabilidad de uso después de liberación en el planificador de CUPS (cupsd) cuando las impresoras temporales se eliminan automáticamente. cupsdDeleteTemporaryPrinters() en scheduler/printers.c llama a cupsdDeletePrinter() sin antes expirar las suscripciones que hacen referencia a la impresora, dejando cupsd_subscription_t.dest como un puntero colgante a memoria de montón liberada. El puntero colgante es posteriormente desreferenciado en múltiples sitios de código, causando un fallo (denegación de servicio) del demonio cupsd. Con la preparación del montón, esto puede ser aprovechado para la ejecución de código.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39316 changed 2026-04-09CVE Terms of Use
NVDCVE-2026-39316 changed 2026-10-26Public domain