Mandrake Linux Security Advisory : printer-drivers (MDKSA-2003:010)

High Nessus Plugin ID 13995


The remote Mandrake Linux host is missing one or more security updates.


Karol Wiesek and iDefense disovered three vulnerabilities in the printer-drivers package and tools it installs. These vulnerabilities allow a local attacker to empty or create any file on the filesystem.

The first vulnerability is in the mtink binary, which has a buffer overflow in its handling of the HOME environment variable.

The second vulnerability is in the escputil binary, which has a buffer overflow in the parsing of the --printer-name command line argument.
This is only possible when esputil is suid or sgid; in Mandrake Linux 9.0 it was sgid 'sys'. Successful exploitation will provide the attacker with the privilege of the group 'sys'.

The third vulnerability is in the ml85p binary which contains a race condition in the opening of a temporary file. By default this file is installed suid root so it can be used to gain root privilege. The only caveat is that this file is not executable by other, only by root or group 'sys'. Using either of the two previous vulnerabilities, an attacker can exploit one of them to obtain 'sys' privilege' and then use that to exploit this vulnerability to gain root privilege.

MandrakeSoft encourages all users to upgrade immediately.

Aside from the security vulnerabilities, a number of bugfixes are included in this update, for Mandrake Linux 9.0 users. GIMP-Print 4.2.5pre1, HPIJS 1.3, pnm2ppa 1.12, mtink 0.9.53, and a new foomatic snapshot are included. For a list of the many bugfixes, please refer to the RPM changelog.


Update the affected packages.

See Also

Plugin Details

Severity: High

ID: 13995

File Name: mandrake_MDKSA-2003-010.nasl

Version: $Revision: 1.16 $

Type: local

Published: 2004/07/31

Modified: 2013/05/31

Dependencies: 12634

Risk Information

Risk Factor: High


Base Score: 7.2

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: p-cpe:/a:mandriva:linux:cups-drivers, p-cpe:/a:mandriva:linux:foomatic, p-cpe:/a:mandriva:linux:ghostscript, p-cpe:/a:mandriva:linux:ghostscript-module-SVGALIB, p-cpe:/a:mandriva:linux:ghostscript-module-X, p-cpe:/a:mandriva:linux:ghostscript-utils, p-cpe:/a:mandriva:linux:gimpprint, p-cpe:/a:mandriva:linux:libgimpprint1, p-cpe:/a:mandriva:linux:libgimpprint1-devel, p-cpe:/a:mandriva:linux:libijs0, p-cpe:/a:mandriva:linux:libijs0-devel, p-cpe:/a:mandriva:linux:omni, p-cpe:/a:mandriva:linux:printer-filters, p-cpe:/a:mandriva:linux:printer-testpages, p-cpe:/a:mandriva:linux:printer-utils, cpe:/o:mandrakesoft:mandrake_linux:8.0, cpe:/o:mandrakesoft:mandrake_linux:8.1, cpe:/o:mandrakesoft:mandrake_linux:8.2, cpe:/o:mandrakesoft:mandrake_linux:9.0

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/Mandrake/release, Host/Mandrake/rpm-list

Patch Publication Date: 2003/01/21

Reference Information

CVE: CVE-2003-0034, CVE-2003-0035, CVE-2003-0036

MDKSA: 2003:010