Mandrake Linux Security Advisory : gdm (MDKSA-2003:085)

Medium Nessus Plugin ID 14067


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


Several vulnerabilities were discovered in versions of gdm prior to The first vulnerability is that any user can read any text file on the system due to code originally written to be run as the user logging in was in fact being run as the root user. This code is what allows the examination of the ~/.xsession-errors file. If a user makes a symlink from this file to any other file on the system during the session and ensures that the session lasts less than ten seconds, the user can read the file provided it was readable as a text file.

Another two vulnerabilities were found in the XDMCP code that could be exploited to crash the main gdm daemon which would inhibit starting any new sessions (although the current session would be unaffected).
The first problem here is due to the indirect query structure being used right after being freed due to a missing 'continue' statement in a loop; this happens if a choice of server expired and the client tried to connect.

The second XDMCP problem is that when authorization data is being checked as a string, the length is not checked first. If the data is less than 18 bytes long, the daemon may wander off the end of the string a few bytes in the strncmp which could cause a SEGV.

These updated packages bring gdm to version which is not vulnerable to any of these problems. Also note that XDMCP support is disabled by default in gdm.


Update the affected gdm and / or gdm-Xnest packages.

Plugin Details

Severity: Medium

ID: 14067

File Name: mandrake_MDKSA-2003-085.nasl

Version: $Revision: 1.15 $

Type: local

Published: 2004/07/31

Modified: 2013/05/31

Dependencies: 12634

Risk Information

Risk Factor: Medium


Base Score: 5

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

Vulnerability Information

CPE: p-cpe:/a:mandriva:linux:gdm, p-cpe:/a:mandriva:linux:gdm-Xnest, cpe:/o:mandrakesoft:mandrake_linux:9.0, cpe:/o:mandrakesoft:mandrake_linux:9.1

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

Patch Publication Date: 2003/08/21

Reference Information

CVE: CVE-2003-0547, CVE-2003-0548, CVE-2003-0549

MDKSA: 2003:085