CVE-2023-34241
CUPS vulnerable to use-after-free in cupsdAcceptClient()
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
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.
A vulnerability was found in CUPS. This issue occurs due to logging data of free memory to the logging service AFTER the connection has been closed, when it should have logged the data immediately before the connection closed, resulting in a use-after-free in cupsdAcceptClient() in scheduler/client.c
CVSS Scores
SSVC
- Decision:-
Timeline
- 2023-05-31 CVE Reserved
- 2023-06-22 CVE Published
- 2024-08-02 CVE Updated
- 2024-08-02 First Exploit
- 2024-09-26 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-416: Use After Free
CAPEC
References (13)
URL | Tag | Source |
---|---|---|
http://www.openwall.com/lists/oss-security/2023/06/23/10 | Mailing List | |
http://www.openwall.com/lists/oss-security/2023/06/26/1 | Mailing List | |
https://github.com/OpenPrinting/cups/releases/tag/v2.4.6 | Release Notes | |
https://lists.debian.org/debian-lts-announce/2023/06/msg00038.html | Mailing List | |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7I7DWGYGEMBNLZF5UQBMF3SONR37YUBN | Mailing List | |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TBIYKDS3UG3W4Z7YOHTR2AWFNBRYPNYY | Mailing List | |
https://support.apple.com/kb/HT213843 | Third Party Advisory | |
https://support.apple.com/kb/HT213844 | Third Party Advisory | |
https://support.apple.com/kb/HT213845 | Third Party Advisory |
URL | Date | SRC |
---|---|---|
https://github.com/OpenPrinting/cups/security/advisories/GHSA-qjgh-5hcq-5f25 | 2024-08-02 |
URL | Date | SRC |
---|---|---|
https://github.com/OpenPrinting/cups/commit/9809947a959e18409dcf562a3466ef246cb90cb2 | 2023-11-17 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2023-34241 | 2024-03-19 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2214914 | 2024-03-19 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Openprinting Search vendor "Openprinting" | Cups Search vendor "Openprinting" for product "Cups" | >= 2.2.0 < 2.4.6 Search vendor "Openprinting" for product "Cups" and version " >= 2.2.0 < 2.4.6" | - |
Affected
| ||||||
Fedoraproject Search vendor "Fedoraproject" | Fedora Search vendor "Fedoraproject" for product "Fedora" | 37 Search vendor "Fedoraproject" for product "Fedora" and version "37" | - |
Affected
| ||||||
Fedoraproject Search vendor "Fedoraproject" | Fedora Search vendor "Fedoraproject" for product "Fedora" | 38 Search vendor "Fedoraproject" for product "Fedora" and version "38" | - |
Affected
| ||||||
Debian Search vendor "Debian" | Debian Linux Search vendor "Debian" for product "Debian Linux" | 10.0 Search vendor "Debian" for product "Debian Linux" and version "10.0" | - |
Affected
| ||||||
Apple Search vendor "Apple" | Macos Search vendor "Apple" for product "Macos" | < 11.7.9 Search vendor "Apple" for product "Macos" and version " < 11.7.9" | - |
Affected
| ||||||
Apple Search vendor "Apple" | Macos Search vendor "Apple" for product "Macos" | >= 12.0.0 < 12.6.8 Search vendor "Apple" for product "Macos" and version " >= 12.0.0 < 12.6.8" | - |
Affected
| ||||||
Apple Search vendor "Apple" | Macos Search vendor "Apple" for product "Macos" | >= 13.0 < 13.5 Search vendor "Apple" for product "Macos" and version " >= 13.0 < 13.5" | - |
Affected
|