CUPS vulnerable to use-after-free in cupsdAcceptClient()
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
47>=2.0.0, <2.4.6+ 1 more
- (no CPE)range: >=2.0.0, <2.4.6
- (no CPE)range: >= 2.0.0, < 2.4.6
- osv-coords45 versionspkg:rpm/almalinux/cupspkg:rpm/almalinux/cups-clientpkg:rpm/almalinux/cups-develpkg:rpm/almalinux/cups-filesystempkg:rpm/almalinux/cups-ipptoolpkg:rpm/almalinux/cups-libspkg:rpm/almalinux/cups-lpdpkg:rpm/almalinux/cups-printerapppkg:rpm/opensuse/cups&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/cups&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/cups&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/cups&distro=openSUSE%20Tumbleweedpkg:rpm/suse/cups&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/cups&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP5pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-ESPOSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/cups&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/cups&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/cups&distro=SUSE%20Manager%20Proxy%204.2pkg:rpm/suse/cups&distro=SUSE%20Manager%20Server%204.2pkg:rpm/suse/cups&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/cups&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 1:2.3.3op2-21.el9+ 44 more
- (no CPE)range: < 1:2.3.3op2-21.el9
- (no CPE)range: < 1:2.3.3op2-21.el9
- (no CPE)range: < 1:2.3.3op2-21.el9
- (no CPE)range: < 1:2.3.3op2-21.el9
- (no CPE)range: < 1:2.3.3op2-21.el9
- (no CPE)range: < 1:2.3.3op2-21.el9
- (no CPE)range: < 1:2.3.3op2-21.el9
- (no CPE)range: < 1:2.3.3op2-21.el9
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.4.2-6.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 1.7.5-20.46.1
- (no CPE)range: < 1.7.5-20.46.1
- (no CPE)range: < 1.7.5-20.46.1
- (no CPE)range: < 1.7.5-20.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 1.7.5-20.46.1
- (no CPE)range: < 1.7.5-20.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 1.7.5-20.46.1
- (no CPE)range: < 2.4.11-1.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 2.2.7-150000.3.46.1
- (no CPE)range: < 1.7.5-20.46.1
- (no CPE)range: < 1.7.5-20.46.1
Patches
Vulnerability mechanics
References
11- github.com/OpenPrinting/cups/commit/9809947a959e18409dcf562a3466ef246cb90cb2mitrex_refsource_MISC
- github.com/OpenPrinting/cups/releases/tag/v2.4.6mitrex_refsource_MISC
- github.com/OpenPrinting/cups/security/advisories/GHSA-qjgh-5hcq-5f25mitrex_refsource_CONFIRM
- www.openwall.com/lists/oss-security/2023/06/23/10mitre
- www.openwall.com/lists/oss-security/2023/06/26/1mitre
- lists.debian.org/debian-lts-announce/2023/06/msg00038.htmlmitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7I7DWGYGEMBNLZF5UQBMF3SONR37YUBN/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TBIYKDS3UG3W4Z7YOHTR2AWFNBRYPNYY/mitre
- support.apple.com/kb/HT213843mitre
- support.apple.com/kb/HT213844mitre
- support.apple.com/kb/HT213845mitre
News mentions
0No linked articles in our index yet.