CVE-2023-34241
published medium CVSS 3.1 · 5.3CUPS vulnerable to use-after-free in cupsdAcceptClient()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenPrinting | — | cups>= 2.0.0, < 2.4.6 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2109 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-235 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | cups | Advisory build | 1:2.2.6-54.el8_9 | ALSA-2023:7165 |
| Alpine Linux | v3.15 | cups | Fixed | 2.3.3-r8 | Package fix record |
| Debian | buster | cups | Advisory build | 2.2.10-6+deb10u8 | DLA-3476-1 |
| Oracle Linux | 8 | cupsaarch64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Red Hat Enterprise Linux | RHEL-8 | cupsaarch64 | Advisory build | 1:2.2.6-45.el8_6.4 | RHSA-2024:1101 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP2 | cupsx86_64 | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| Ubuntu | bionic | cups | Advisory build | 2.2.7-1ubuntu2.10+esm1 | USN-6184-2 |
| AlmaLinux | 9 | cups | Advisory build | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| Alpine Linux | v3.16 | cups | Fixed | 2.4.2-r2 | Package fix record |
| Alpine Linux | v3.17 | cups | Fixed | 2.4.2-r3 | Package fix record |
| Oracle Linux | 8 | cupsx86_64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 9 | cupsaarch64 | Advisory build | 1:2.3.3op2-21.el9 | ELSA-2023-6596 |
| Oracle Linux | 9 | cupsx86_64 | Advisory build | 1:2.3.3op2-21.el9 | ELSA-2023-6596 |
| Red Hat Enterprise Linux | RHEL-8 | cupsaarch64 | Advisory build | 1:2.2.6-51.el8_8.3 | RHSA-2024:1409 |
| Red Hat Enterprise Linux | RHEL-8 | cupsaarch64 | Advisory build | 1:2.2.6-54.el8_9 | RHSA-2023:7165 |
| Red Hat Enterprise Linux | RHEL-8 | cupsppc64le | Advisory build | 1:2.2.6-45.el8_6.4 | RHSA-2024:1101 |
| Red Hat Enterprise Linux | RHEL-8 | cupsppc64le | Advisory build | 1:2.2.6-51.el8_8.3 | RHSA-2024:1409 |
| Red Hat Enterprise Linux | RHEL-8 | cupsppc64le | Advisory build | 1:2.2.6-54.el8_9 | RHSA-2023:7165 |
| Red Hat Enterprise Linux | RHEL-8 | cupss390x | Advisory build | 1:2.2.6-45.el8_6.4 | RHSA-2024:1101 |
| Red Hat Enterprise Linux | RHEL-8 | cupss390x | Advisory build | 1:2.2.6-51.el8_8.3 | RHSA-2024:1409 |
| Red Hat Enterprise Linux | RHEL-8 | cupss390x | Advisory build | 1:2.2.6-54.el8_9 | RHSA-2023:7165 |
| Red Hat Enterprise Linux | RHEL-8 | cupssrc | Advisory build | 1:2.2.6-45.el8_6.4 | RHSA-2024:1101 |
| Red Hat Enterprise Linux | RHEL-8 | cupssrc | Advisory build | 1:2.2.6-51.el8_8.3 | RHSA-2024:1409 |
| Red Hat Enterprise Linux | RHEL-8 | cupssrc | Advisory build | 1:2.2.6-54.el8_9 | RHSA-2023:7165 |
| Red Hat Enterprise Linux | RHEL-8 | cupsx86_64 | Advisory build | 1:2.2.6-45.el8_6.4 | RHSA-2024:1101 |
| Red Hat Enterprise Linux | RHEL-8 | cupsx86_64 | Advisory build | 1:2.2.6-51.el8_8.3 | RHSA-2024:1409 |
| Red Hat Enterprise Linux | RHEL-8 | cupsx86_64 | Advisory build | 1:2.2.6-54.el8_9 | RHSA-2023:7165 |
| Red Hat Enterprise Linux | RHEL-9 | cupsaarch64 | Advisory build | 1:2.3.3op2-21.el9 | RHSA-2023:6596 |
| Red Hat Enterprise Linux | RHEL-9 | cupsppc64le | Advisory build | 1:2.3.3op2-21.el9 | RHSA-2023:6596 |
| Red Hat Enterprise Linux | RHEL-9 | cupss390x | Advisory build | 1:2.3.3op2-21.el9 | RHSA-2023:6596 |
| Red Hat Enterprise Linux | RHEL-9 | cupssrc | Advisory build | 1:2.3.3op2-21.el9 | RHSA-2023:6596 |
| Red Hat Enterprise Linux | RHEL-9 | cupsx86_64 | Advisory build | 1:2.3.3op2-21.el9 | RHSA-2023:6596 |
| SUSE / openSUSE | SLE-12-SP4 | cupsaarch64 | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE / openSUSE | SLE-12-SP4 | cupsppc64le | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE / openSUSE | SLE-12-SP4 | cupss390x | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE / openSUSE | SLE-12-SP4 | cupsx86_64 | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE / openSUSE | SLE-12-SP5 | cupsaarch64 | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE / openSUSE | SLE-12-SP5 | cupsppc64le | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE / openSUSE | SLE-12-SP5 | cupss390x | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE / openSUSE | SLE-12-SP5 | cupsx86_64 | Advisory build | 1.7.5-20.46.1 | SUSE-SU-2023:3706-1 |
| SUSE / openSUSE | SLE-15-SP1 | cupsaarch64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP1 | cupsppc64le | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP1 | cupss390x | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP1 | cupsx86_64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP2 | cupsaarch64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP2 | cupsppc64le | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP2 | cupss390x | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP2 | cupsx86_64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP3 | cupsaarch64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP3 | cupsppc64le | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP3 | cupss390x | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP3 | cupsx86_64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP4 | cupsaarch64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP4 | cupsppc64le | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP4 | cupss390x | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP4 | cupsx86_64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP5 | cupsaarch64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP5 | cupsppc64le | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP5 | cupss390x | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | SLE-15-SP5 | cupsx86_64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cupsaarch64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cupsppc64le | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cupss390x | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cupsx86_64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cupsaarch64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cupsppc64le | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cupss390x | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cupsx86_64 | Advisory build | 2.2.7-150000.3.46.1 | SUSE-SU-2023:2616-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cupsaarch64 | Advisory build | 2.4.2-6.1 | OPENSUSE-SU-2024:13017-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cupsppc64le | Advisory build | 2.4.2-6.1 | OPENSUSE-SU-2024:13017-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cupss390x | Advisory build | 2.4.2-6.1 | OPENSUSE-SU-2024:13017-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cupsx86_64 | Advisory build | 2.4.2-6.1 | OPENSUSE-SU-2024:13017-1 |
| Ubuntu | focal | cups | Advisory build | 2.3.1-9ubuntu1.4 | USN-6184-1 |
| Ubuntu | jammy | cups | Advisory build | 2.4.1op1-1ubuntu4.4 | USN-6184-1 |
| Ubuntu | xenial | cups | Advisory build | 2.1.3-4ubuntu0.11+esm3 | USN-6184-2 |
| AlmaLinux | 8 | cups-client | Advisory build | 1:2.2.6-54.el8_9 | ALSA-2023:7165 |
| AlmaLinux | 8 | cups-devel | Advisory build | 1:2.2.6-54.el8_9 | ALSA-2023:7165 |
| AlmaLinux | 8 | cups-filesystem | Advisory build | 1:2.2.6-54.el8_9 | ALSA-2023:7165 |
| AlmaLinux | 8 | cups-ipptool | Advisory build | 1:2.2.6-54.el8_9 | ALSA-2023:7165 |
| AlmaLinux | 8 | cups-libs | Advisory build | 1:2.2.6-54.el8_9 | ALSA-2023:7165 |
| AlmaLinux | 8 | cups-lpd | Advisory build | 1:2.2.6-54.el8_9 | ALSA-2023:7165 |
| AlmaLinux | 9 | cups-client | Advisory build | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| AlmaLinux | 9 | cups-devel | Advisory build | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| AlmaLinux | 9 | cups-filesystem | Advisory build | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| AlmaLinux | 9 | cups-ipptool | Advisory build | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| AlmaLinux | 9 | cups-libs | Advisory build | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| AlmaLinux | 9 | cups-lpd | Advisory build | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| AlmaLinux | 9 | cups-printerapp | Advisory build | 1:2.3.3op2-21.el9 | ALSA-2023:6596 |
| Oracle Linux | 8 | cups-clientaarch64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-clientx86_64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-develaarch64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-develx86_64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-filesystemaarch64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-filesystemx86_64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-ipptoolaarch64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-ipptoolx86_64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-libsaarch64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-libsx86_64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-lpdaarch64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
| Oracle Linux | 8 | cups-lpdx86_64 | Advisory build | 1:2.2.6-54.el8_9 | ELSA-2023-7165 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenPrinting | cups | >= 2.0.0, < 2.4.6 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-416 CWE-416: Use After Free
References
11- http://www.openwall.com/lists/oss-security/2023/06/23/10
- http://www.openwall.com/lists/oss-security/2023/06/26/1
- https://github.com/OpenPrinting/cups/commit/9809947a959e18409dcf562a3466ef246cb90cb2
- https://github.com/OpenPrinting/cups/releases/tag/v2.4.6
- https://github.com/OpenPrinting/cups/security/advisories/GHSA-qjgh-5hcq-5f25
- https://lists.debian.org/debian-lts-announce/2023/06/msg00038.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7I7DWGYGEMBNLZF5UQBMF3SONR37YUBN/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/TBIYKDS3UG3W4Z7YOHTR2AWFNBRYPNYY/
- https://support.apple.com/kb/HT213843
- https://support.apple.com/kb/HT213844
- https://support.apple.com/kb/HT213845
Provider assertions
3GitHub_M · cna
CUPS vulnerable to use-after-free in cupsdAcceptClient()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 70de8abc5972ca2290562179c4625ea62698246ed7b2deb2f6e420f890a17159
- Ingested
- 23 Sep 2026, 08:09:31 UTC
- Source record
- Official CVE record