cbcvebase.
CVE-2023-34241
published 2023-06-22

CVE-2023-34241: 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…

high7.1CVSS 3.1
AVLACLPRLUINSUCHINAH
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

27 ranges· showing 25
VendorProductVersion rangeFixed in
applecups>= 0 < 2.3.3-r82.3.3-r8
applecups>= 0 < 2.4.2-r22.4.2-r2
applecups>= 0 < 2.4.2-r32.4.2-r3
applecups>= 0 < 2.3.3op2-3+deb11u32.3.3op2-3+deb11u3
applecups>= 0 < 2.4.2-3+deb12u12.4.2-3+deb12u1
applecups>= 0 < 2.4.2-52.4.2-5
applecups>= 0 < 2.4.2-52.4.2-5
applemacos< 11.7.911.7.9
applemacos>= 12.0.0 < 12.6.812.6.8
applemacos>= 13.0 < 13.513.5
applemacos_big_sur
applemacos_monterey
applemacos_ventura
debiancups< cups 2.4.2-3+deb12u1 (bookworm)cups 2.4.2-3+deb12u1 (bookworm)
debiandebian_linux
fedoraprojectfedora
fedoraprojectfedora
msrcazl3_cups_2.3.3op2-6_on_azure_linux_3.0
msrcazl3_cups_2.4.10-1_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_cups_2.3.3op2-7_on_cbl_mariner_2.0
msrccbl2_cups_2.3.3op2-9_on_cbl_mariner_2.0
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64

CVSS provenance

nvdv3.17.1HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
osv7.1HIGH