CVE-2023-34241

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-34241
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-34241.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-34241
Aliases
  • GHSA-qjgh-5hcq-5f25
Related
Published
2023-06-22T23:15:09Z
Modified
2024-10-12T10:57:25.613597Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Alpine:v3.15 / cups

Package

Name
cups
Purl
pkg:apk/alpine/cups?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.3-r8

Affected versions

1.*

1.4.1-r0
1.4.2-r0
1.4.2-r1
1.4.2-r2
1.4.3-r0
1.4.3-r1
1.4.3-r2
1.4.3-r3
1.4.4-r0
1.4.4-r1
1.4.5-r0
1.4.6-r0
1.4.7-r0
1.4.8-r0
1.5.0-r0
1.5.0-r1
1.5.0-r2
1.5.2-r0
1.5.2-r1
1.5.2-r2
1.5.2-r3
1.5.3-r0
1.5.4-r0
1.5.4-r1
1.6.1-r0
1.6.1-r1
1.6.2-r0
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.3-r0
1.7.3-r1
1.7.4-r0
1.7.5-r0

2.*

2.0.0-r0
2.0.1-r0
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.3-r0
2.0.4-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.2.1-r0
2.2.1-r1
2.2.2-r0
2.2.2-r1
2.2.2-r2
2.2.3-r0
2.2.3-r1
2.2.4-r0
2.2.5-r0
2.2.5-r1
2.2.6-r0
2.2.9-r0
2.2.10-r0
2.2.11-r0
2.2.12-r0
2.2.12-r1
2.2.12-r2
2.3.3-r0
2.3.3-r1
2.3.3-r2
2.3.3-r3
2.3.3-r4
2.3.3-r5
2.3.3-r6
2.3.3-r7

Alpine:v3.16 / cups

Package

Name
cups
Purl
pkg:apk/alpine/cups?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.2-r2

Affected versions

1.*

1.4.1-r0
1.4.2-r0
1.4.2-r1
1.4.2-r2
1.4.3-r0
1.4.3-r1
1.4.3-r2
1.4.3-r3
1.4.4-r0
1.4.4-r1
1.4.5-r0
1.4.6-r0
1.4.7-r0
1.4.8-r0
1.5.0-r0
1.5.0-r1
1.5.0-r2
1.5.2-r0
1.5.2-r1
1.5.2-r2
1.5.2-r3
1.5.3-r0
1.5.4-r0
1.5.4-r1
1.6.1-r0
1.6.1-r1
1.6.2-r0
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.3-r0
1.7.3-r1
1.7.4-r0
1.7.5-r0

2.*

2.0.0-r0
2.0.1-r0
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.3-r0
2.0.4-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.2.1-r0
2.2.1-r1
2.2.2-r0
2.2.2-r1
2.2.2-r2
2.2.3-r0
2.2.3-r1
2.2.4-r0
2.2.5-r0
2.2.5-r1
2.2.6-r0
2.2.9-r0
2.2.10-r0
2.2.11-r0
2.2.12-r0
2.2.12-r1
2.2.12-r2
2.3.3-r0
2.3.3-r1
2.3.3-r2
2.3.3-r3
2.3.3-r4
2.4.0-r0
2.4.1-r0
2.4.1-r1
2.4.2-r0
2.4.2-r1

Alpine:v3.17 / cups

Package

Name
cups
Purl
pkg:apk/alpine/cups?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.2-r3

Affected versions

1.*

1.4.1-r0
1.4.2-r0
1.4.2-r1
1.4.2-r2
1.4.3-r0
1.4.3-r1
1.4.3-r2
1.4.3-r3
1.4.4-r0
1.4.4-r1
1.4.5-r0
1.4.6-r0
1.4.7-r0
1.4.8-r0
1.5.0-r0
1.5.0-r1
1.5.0-r2
1.5.2-r0
1.5.2-r1
1.5.2-r2
1.5.2-r3
1.5.3-r0
1.5.4-r0
1.5.4-r1
1.6.1-r0
1.6.1-r1
1.6.2-r0
1.6.2-r1
1.6.3-r0
1.6.4-r0
1.7.0-r0
1.7.0-r1
1.7.1-r0
1.7.2-r0
1.7.3-r0
1.7.3-r1
1.7.4-r0
1.7.5-r0

2.*

2.0.0-r0
2.0.1-r0
2.0.2-r0
2.0.2-r1
2.0.2-r2
2.0.3-r0
2.0.4-r0
2.1.0-r0
2.1.1-r0
2.1.2-r0
2.1.3-r0
2.1.3-r1
2.1.4-r0
2.2.1-r0
2.2.1-r1
2.2.2-r0
2.2.2-r1
2.2.2-r2
2.2.3-r0
2.2.3-r1
2.2.4-r0
2.2.5-r0
2.2.5-r1
2.2.6-r0
2.2.9-r0
2.2.10-r0
2.2.11-r0
2.2.12-r0
2.2.12-r1
2.2.12-r2
2.3.3-r0
2.3.3-r1
2.3.3-r2
2.3.3-r3
2.3.3-r4
2.4.0-r0
2.4.1-r0
2.4.1-r1
2.4.2-r0
2.4.2-r1
2.4.2-r2

Debian:11 / cups

Package

Name
cups
Purl
pkg:deb/debian/cups?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.3op2-3+deb11u3

Affected versions

2.*

2.3.3op2-3+deb11u1
2.3.3op2-3+deb11u2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / cups

Package

Name
cups
Purl
pkg:deb/debian/cups?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.2-3+deb12u1

Affected versions

2.*

2.4.2-3

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / cups

Package

Name
cups
Purl
pkg:deb/debian/cups?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.2-5

Affected versions

2.*

2.4.2-3
2.4.2-4

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/openprinting/cups

Affected ranges

Type
GIT
Repo
https://github.com/openprinting/cups
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v2.*

v2.2.0
v2.2.1
v2.2.2
v2.2.3
v2.2.4
v2.2.5
v2.2.6
v2.2b1
v2.2b2
v2.2rc1
v2.3.0
v2.3.1
v2.3.3
v2.3.3op1
v2.3.3op2
v2.3b1
v2.3b2
v2.3b3
v2.3b4
v2.3b5
v2.3b6
v2.3b7
v2.3b8
v2.3rc1
v2.4.0
v2.4.1
v2.4.2
v2.4.3
v2.4b1
v2.4rc1