Description
OpenPrinting CUPS is a standards-based, open source printing system for Linux and other Unix-like operating systems. Starting in version 2.0.0 and prior to version 2.4.6, CUPS logs data of free memory to the logging service AFTER the connection has been closed, when it should have logged the data right before. This is a use-after-free bug that impacts the entire cupsd process.
The exact cause of this issue is the function `httpClose(con->http)` being called in `scheduler/client.c`. The problem is that httpClose always, provided its argument is not null, frees the pointer at the end of the call, only for cupsdLogClient to pass the pointer to httpGetHostname. This issue happens in function `cupsdAcceptClient` if LogLevel is warn or higher and in two scenarios: there is a double-lookup for the IP Address (HostNameLookups Double is set in `cupsd.conf`) which fails to resolve, or if CUPS is compiled with TCP wrappers and the connection is refused by rules from `/etc/hosts.allow` and `/etc/hosts.deny`.
Version 2.4.6 has a patch for this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OpenPrinting | cups | >= 2.0.0, < 2.4.6 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cups | 2.4.2-5 | — |
| Debian 13 | cups | 2.4.2-5 | — |
| Debian 12 | cups | 2.4.2-3+deb12u1 | — |
| Debian 10 | cups | 2.2.10-6+deb10u8 | DLA-3476-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | cups | 2.4.1op1-1ubuntu4.4 | USN-6184-1 |
| Ubuntu 20.04 LTS | cups | 2.3.1-9ubuntu1.4 | USN-6184-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | cups | 2.2.7-1ubuntu2.10+esm1 | USN-6184-2 |
| Ubuntu Pro 16.04 LTS | cups | 2.1.3-4ubuntu0.11+esm3 | USN-6184-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | cups +7 | 1:2.3.3op2-21.el9 | RHSA-2023:6596 |
| RHEL 8 | cups +6 | 1:2.2.6-54.el8_9 | RHSA-2023:7165 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.8 EUS | cups +6 | 1:2.2.6-51.el8_8.3 | RHSA-2024:1409 |
| RHEL 8.6 EUS | cups +6 | 1:2.2.6-45.el8_6.4 | RHSA-2024:1101 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | cups +7 | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| AlmaLinux 8 | cups +6 | 1:2.2.6-54.el8_9 | ALSA-2023:7165 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLES 15 SP4 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLES 15 SP3 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLES 15 SP2 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLES 15 SP1 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
Show 22 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | cups | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SLES 12 SP4 | cups | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SLES 12 SP2 | cups | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SLES for SAP 15 SP3 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLES for SAP 15 SP2 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLES for SAP 15 SP1 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLES for SAP 12 SP5 | cups | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SLES for SAP 12 SP4 | cups | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SLE Real Time 15 SP3 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLE Micro 6.0 | cups | 2.4.11-1.1 | SUSE-SU-2025:20090-1 |
| SLE Micro 5.4 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLE Micro 5.3 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLE Micro 5.2 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLE HPC 15 SP3 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLE HPC 15 SP2 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SLE HPC 15 SP1 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE OpenStack Cloud Crowbar 9 | cups | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE OpenStack Cloud 9 | cups | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE Manager Server 4.2 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE Manager Proxy 4.2 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE Enterprise Storage 7.1 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE Enterprise Storage 7 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cups | 2.4.2-6.1 | openSUSE-SU-2024:13017-1 |
| openSUSE Leap 15.5 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| openSUSE Leap 15.4 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.3 | cups | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.17 | cups | 2.4.2-r3 | — |
| Alpine v3.16 | cups | 2.4.2-r2 | — |
| Alpine v3.15 | cups | 2.3.3-r8 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | cups +7 | 1:2.3.3op2-18.amzn2023.0.5 | ALAS2023-2023-235 |
| Amazon Linux 2 | cups +6 | 1:1.6.3-51.amzn2.0.1 | ALAS2-2023-2109 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | cups | 2.4.10-1 | — |
| Azure Linux 2 (CBL-Mariner) | cups | 2.3.3op2-7 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | cups +7 | 1:2.3.3op2-21.el9 | ELSA-2023-6596 |
| Oracle Linux 8 | cups +6 | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
Advisories 20
- ALSA-2023:6596 Moderate: cups security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2023:7165 Moderate: cups security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2023-2917 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 30, 2026
- RHSA-2024:1101 Red Hat Security Advisory: cups security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2023:6596 Red Hat Security Advisory: cups security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2023:7165 Red Hat Security Advisory: cups security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2024:1409 Red Hat Security Advisory: cups security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-6184-2 cups vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-6184-1 cups vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- SUSE-SU-2025:20090-1 Security update for cups SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-3476-1 cups - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2023:3706-1 Security update for cups SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13017-1 cups-2.4.2-6.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:2616-1 Security update for cups SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1086 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 19, 2025
- WID-SEC-2023-1540 CUPS: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Jun 3, 2025
- ELSA-2023-7165 Moderate: cups security and bug fix update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 17, 2023
- ELSA-2023-6596 Moderate: cups security and bug fix update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Nov 11, 2023
- ALAS2023-2023-235 Moderate: cups security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jul 20, 2023
- ALAS2-2023-2109 Moderate: cups security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 19, 2023
References
- https://github.com/OpenPrinting/cups/security/advisories/GHSA-qjgh-5hcq-5f25
- https://github.com/OpenPrinting/cups/commit/9809947a959e18409dcf562a3466ef246cb90cb2
- https://github.com/OpenPrinting/cups/releases/tag/v2.4.6
- http://www.openwall.com/lists/oss-security/2023/06/23/10
- http://www.openwall.com/lists/oss-security/2023/06/26/1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TBIYKDS3UG3W4Z7YOHTR2AWFNBRYPNYY/
- https://lists.debian.org/debian-lts-announce/2023/06/msg00038.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7I7DWGYGEMBNLZF5UQBMF3SONR37YUBN/
- https://support.apple.com/kb/HT213843
- https://support.apple.com/kb/HT213844
- https://support.apple.com/kb/HT213845