Use-after-free in cups - CVE-2026-39316

 

Use-after-free in cups - CVE-2026-39316

Published: April 11, 2026 / Updated: April 17, 2026


Vulnerability identifier: #VU125824
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-39316
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to use-after-free in cupsdDeleteTemporaryPrinters() in scheduler/printers.c when deleting temporary printers that still have subscriptions referencing them. A local user can create a temporary printer with a subscription and trigger dereference of the dangling subscription pointer to execute arbitrary code.

The dangling pointer is subsequently dereferenced at multiple code sites in the scheduler, and the advisory confirms denial of service with potential code execution through heap grooming.


Affected software

cups
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
SUSE Linux Micro
Development Tools Module
Desktop Applications Module
Basesystem Module
openEuler
Ubuntu
Anolis OS
Fedora
cups-libs-debuginfo-32bit
cups-debugsource
cups-client
cups-libs-32bit
cups-libs
cups-devel
cups-debuginfo
cups-libs-debuginfo
cups
cups-client-debuginfo
libcups2-32bit
libcupsimage2-debuginfo
libcupsppdc1-debuginfo
libcupsmime1-debuginfo
libcups2
libcups2-32bit-debuginfo
cups-ddk-debuginfo
cups-ddk
libcups2-debuginfo
cups-config
libcupscgi1
libcupsimage2
libcupsppdc1
libcupscgi1-debuginfo
libcupsmime1
cups-ipptool
cups-lpd
cups-printerapp
cups-filesystem
cups-help
cups (Ubuntu package)
cups-doc

How to mitigate CVE-2026-39316

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

cups - update to 2.4.17
cups-libs-debuginfo-32bit - update to 1.7.5-20.67.1
cups-debugsource - addressed in versions 1.7.5-20.67.1, 2.2.7-150000.3.93.1, 2.4.19-1.1
cups-client - addressed in versions 1.7.5-20.67.1, 2.2.7-150000.3.93.1
cups-libs-32bit - update to 1.7.5-20.67.1
cups-libs - update to 1.7.5-20.67.1
cups-devel - addressed in versions 1.7.5-20.67.1, 2.2.7-150000.3.93.1
cups-debuginfo - addressed in versions 1.7.5-20.67.1, 2.2.7-150000.3.93.1
cups-libs-debuginfo - update to 1.7.5-20.67.1
cups - addressed in versions 1.7.5-20.67.1, 2.2.7-150000.3.93.1
cups-client-debuginfo - addressed in versions 1.7.5-20.67.1, 2.2.7-150000.3.93.1
libcups2-32bit - update to 2.2.7-150000.3.93.1
libcupsimage2-debuginfo - update to 2.2.7-150000.3.93.1
libcupsppdc1-debuginfo - update to 2.2.7-150000.3.93.1
libcupsmime1-debuginfo - update to 2.2.7-150000.3.93.1
libcups2 - addressed in versions 2.2.7-150000.3.93.1, 2.4.19-1.1
libcups2-32bit-debuginfo - update to 2.2.7-150000.3.93.1
cups-ddk-debuginfo - update to 2.2.7-150000.3.93.1
cups-ddk - update to 2.2.7-150000.3.93.1
libcups2-debuginfo - addressed in versions 2.2.7-150000.3.93.1, 2.4.19-1.1
cups-config - addressed in versions 2.2.7-150000.3.93.1, 2.4.19-1.1
libcupscgi1 - update to 2.2.7-150000.3.93.1
libcupsimage2 - update to 2.2.7-150000.3.93.1
libcupsppdc1 - update to 2.2.7-150000.3.93.1
libcupscgi1-debuginfo - update to 2.2.7-150000.3.93.1
libcupsmime1 - update to 2.2.7-150000.3.93.1
cups-debuginfo - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-debugsource - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-client - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-devel - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-ipptool - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-libs - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-lpd - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-printerapp - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-filesystem - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups-help - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups - addressed in versions 2.4.0-19, 2.4.7-12, 2.4.7-13, 2.4.7-14
cups (Ubuntu package) - addressed in versions 2.4.1op1-1ubuntu4.20, 2.4.1op1-1ubuntu4.21, 2.4.7-1.2ubuntu7.13, 2.4.7-1.2ubuntu7.14, 2.4.12-0ubuntu3.9, 2.4.12-0ubuntu3.10, 2.4.16-1ubuntu1.2, 2.4.16-1ubuntu1.3
cups-client - update to 2.4.10-4
cups-filesystem - update to 2.4.10-4
cups-doc - update to 2.4.10-4
cups-printerapp - update to 2.4.10-4
cups-lpd - update to 2.4.10-4
cups-libs - update to 2.4.10-4
cups-ipptool - update to 2.4.10-4
cups-devel - update to 2.4.10-4
cups - update to 2.4.10-4
cups - addressed in versions 2.4.17-1.fc42, 2.4.17-1.fc43, 2.4.17-1.fc44, 2.4.17-1.fc45

External References

Related Security Bulletins