CVE-2023-34241

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductOpenprinting Cups
PublishedJun 22, 2023
First seenJun 22, 2023

How to fix

Update
  • openprinting cups2.4.6 or later
  • apple macos11.7.9, 12.6.8, 13.5 or later

Affected products

ProductAffected versionsFixed in
openprinting cups2.2.0 ≤ v < 2.4.62.4.6
fedoraproject fedora37, 38—
debian debian_linux10.0—
apple macosv < 11.7.9, 12.0.0 ≤ v < 12.6.8, 13.0 ≤ v < 13.511.7.9, 12.6.8, 13.5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.