Headline
Ubuntu Security Notice USN-6204-1
Ubuntu Security Notice 6204-1 - Seth Arnold discovered that CPDB incorrectly handled certain characters. An attacker could possibly use this issue to cause a crash or execute arbitrary code.
=========================================================================
Ubuntu Security Notice USN-6204-1
July 05, 2023
cpdb-libs vulnerability
A security issue affects these releases of Ubuntu and its derivatives:
- Ubuntu 23.04
- Ubuntu 22.10
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
Summary:
CPDB could be made to crash or execute arbitrary code.
Software Description:
- cpdb-libs: Common Print Dialog Backends - Tools
Details:
Seth Arnold discovered that CPDB incorrectly handled certain characters.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code.
Update instructions:
The problem can be corrected by updating your system to the following
package versions:
Ubuntu 23.04:
cpdb-libs-tools 2.0~b4-0ubuntu2.1
libcpdb-frontend2 2.0~b4-0ubuntu2.1
libcpdb-libs-tools 2.0~b4-0ubuntu2.1
libcpdb2 2.0~b4-0ubuntu2.1
Ubuntu 22.10:
libcpdb-libs-common1 1.2.0-0ubuntu8.1.22.10.1
libcpdb-libs-frontend1 1.2.0-0ubuntu8.1.22.10.1
Ubuntu 22.04 LTS:
libcpdb-libs-common1 1.2.0-0ubuntu8.1.22.04.1
libcpdb-libs-frontend1 1.2.0-0ubuntu8.1.22.04.1
Ubuntu 20.04 LTS:
libcpdb-libs-common1 1.2.0-0ubuntu7.1
libcpdb-libs-frontend1 1.2.0-0ubuntu7.1
In general, a standard system update will make all the necessary changes.
References:
https://ubuntu.com/security/notices/USN-6204-1
CVE-2023-34095
Package Information:
https://launchpad.net/ubuntu/+source/cpdb-libs/2.0~b4-0ubuntu2.1
https://launchpad.net/ubuntu/+source/cpdb-libs/1.2.0-0ubuntu8.1.22.10.1
https://launchpad.net/ubuntu/+source/cpdb-libs/1.2.0-0ubuntu8.1.22.04.1
https://launchpad.net/ubuntu/+source/cpdb-libs/1.2.0-0ubuntu7.1
Related news
cpdb-libs provides frontend and backend libraries for the Common Printing Dialog Backends (CPDB) project. In versions 1.0 through 2.0b4, cpdb-libs is vulnerable to buffer overflows via improper use of `scanf(3)`. cpdb-libs uses the `fscanf()` and `scanf()` functions to parse command lines and configuration files, dropping the read string components into fixed-length buffers, but does not limit the length of the strings to be read by `fscanf()` and `scanf()` causing buffer overflows when a string is longer than 1023 characters. A patch for this issue is available at commit f181bd1f14757c2ae0f17cc76dc20421a40f30b7. As all buffers have a length of 1024 characters, the patch limits the maximum string length to be read to 1023 by replacing all occurrences of `%s` with `%1023s` in all calls of the `fscanf()` and `scanf()` functions.