Advisory

UBUNTU-CVE-2023-34241

Also known as: CVE-2023-34241

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 7.1, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Dates

Published
2023-06-22 11:00 UTC
Modified
2026-04-22 14:08 UTC

Affected packages and fixes

cups

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.3.1-9ubuntu1.4 (ecosystem)

Fixed versions

2.3.1-9ubuntu1.4

Fix

  • Fixed version 2.3.1-9ubuntu1.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

cups

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.4.1op1-1ubuntu4.4 (ecosystem)

Fixed versions

2.4.1op1-1ubuntu4.4

Fix

  • Fixed version 2.4.1op1-1ubuntu4.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences