Xlockmore 4.16 Buffer Overflow Vulnerability

BID:1267

Info

Xlockmore 4.16 Buffer Overflow Vulnerability

Bugtraq ID: 1267
Class: Boundary Condition Error
CVE:
Remote: No
Local: Yes
Published: May 29 2000 12:00AM
Updated: May 29 2000 12:00AM
Credit: First made public in Network Associates COVERT Labs Security Advisory COVERT-2000-06.
Vulnerable: David Bagley xlock 4.16
+ Debian Linux 2.2 sparc
+ Debian Linux 2.2 powerpc
+ Debian Linux 2.2 arm
+ Debian Linux 2.2 alpha
+ Debian Linux 2.2
+ Debian Linux 2.1 sparc
+ Debian Linux 2.1 alpha
+ Debian Linux 2.1 68k
+ Debian Linux 2.1
- FreeBSD FreeBSD 5.0 alpha
- FreeBSD FreeBSD 5.0
- FreeBSD FreeBSD 4.0 alpha
- FreeBSD FreeBSD 4.0
+ Mandriva Linux Mandrake 7.0
+ Mandriva Linux Mandrake 6.1
+ NetBSD NetBSD 1.4.2 x86
+ NetBSD NetBSD 1.4.2 SPARC
+ NetBSD NetBSD 1.4.2 Alpha
+ NetBSD NetBSD 1.4.1 x86
+ NetBSD NetBSD 1.4.1 SPARC
+ NetBSD NetBSD 1.4.1 Alpha
+ NetBSD NetBSD 1.4 x86
+ NetBSD NetBSD 1.4 SPARC
+ NetBSD NetBSD 1.4 Alpha
- OpenBSD OpenBSD 2.7
- OpenBSD OpenBSD 2.6
+ Redhat Linux 6.2 sparc
+ Redhat Linux 6.2 i386
+ Redhat Linux 6.2 alpha
+ Redhat Linux 6.1 sparc
+ Redhat Linux 6.1 i386
+ Redhat Linux 6.1 alpha
+ Redhat Linux 6.0 sparc
+ Redhat Linux 6.0 alpha
+ Redhat Linux 6.0
- Sun Solaris 2.5.1 _x86
- Sun Solaris 2.5.1
- Sun Solaris 8_x86
- Sun Solaris 8_sparc
- Sun Solaris 7.0_x86
- Sun Solaris 7.0
- Sun Solaris 2.6_x86
- Sun Solaris 2.6
+ Turbolinux Turbolinux 6.0.4
+ Turbolinux Turbolinux 6.0.3
+ Turbolinux Turbolinux 6.0.2
+ Turbolinux Turbolinux 6.0.1
+ Turbolinux Turbolinux 6.0
Not Vulnerable: David Bagley xlock 4.16.1

Discussion

Xlockmore 4.16 Buffer Overflow Vulnerability

xlock is an X11 utility used to lock Xwindows displays until the password of the user running X is entered correctly. Of course, in order to perform the password-check xlock must be setuid root and have access to the shadowed passwd file. In the xlockmore distributions versions prior to 4.16.1, a buffer overflow vulnerability was present in xlock that permitted a user to view parts of the shadowed passwd file. This is achieved by overwriting (with an oversized -mode argument) a global variable storing a pointer to a string printed in the "usage" output. The pointer would be overwritten with an address pointing to the shadowed passwd data. With the long argument, xlock would find and an error in the command syntax and exit, printing the usage information (along with the shadowed passwd text).

Exploit / POC

Xlockmore 4.16 Buffer Overflow Vulnerability

Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].

Solution / Fix

Xlockmore 4.16 Buffer Overflow Vulnerability

Solution:
This vulnerability has been fixed in (at least) the NetBSD package sources.

To remove the package:

pkg_delete -v xlockmore

To build / install the new version:

cd pkgsrc/x11/xlockmore; make clean; make install

NetBSD binaries are available at:

ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/x11/xlockmore/README.html

Mandrake Linux:

To upgrade automatically, use ? MandrakeUpdate ?. If you want to upgrade manually, download the updated package from one of the FTP server mirrors and uprade with "rpm -Uvh package_name". All mirrors are listed on http://www.mandrake.com/en/ftp.php3 Updated packages are available in the "updates/" directory.

For example, if you are looking for an updated RPM package for Mandrake 7.0, look for it in: updates/7.0/RPMS/

References

Xlockmore 4.16 Buffer Overflow Vulnerability

References:
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report