J-Security Center

Title: Xlockmore 4.16 Buffer Overflow Vulnerability

Severity: MODERATE

Description:

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).

Affected Products:

  • David Bagley xlock 4.16.0
  • Debian Linux 2.1.0
  • Debian Linux 2.1.0 68k
  • Debian Linux 2.1.0 alpha
  • Debian Linux 2.1.0 sparc
  • Debian Linux 2.2.0
  • Debian Linux 2.2.0 alpha
  • Debian Linux 2.2.0 arm
  • Debian Linux 2.2.0 powerpc
  • Debian Linux 2.2.0 sparc
  • MandrakeSoft Linux Mandrake 6.1.0
  • MandrakeSoft Linux Mandrake 7.0.0
  • NetBSD NetBSD 1.4.0 Alpha
  • NetBSD NetBSD 1.4.0 SPARC
  • NetBSD NetBSD 1.4.0 x86
  • NetBSD NetBSD 1.4.1 Alpha
  • NetBSD NetBSD 1.4.1 SPARC
  • NetBSD NetBSD 1.4.1 x86
  • NetBSD NetBSD 1.4.2 Alpha
  • NetBSD NetBSD 1.4.2 SPARC
  • NetBSD NetBSD 1.4.2 x86
  • RedHat Linux 6.0.0
  • RedHat Linux 6.0.0 alpha
  • RedHat Linux 6.0.0 sparc
  • RedHat Linux 6.1.0 alpha
  • RedHat Linux 6.1.0 i386
  • RedHat Linux 6.1.0 sparc
  • RedHat Linux 6.2.0 alpha
  • RedHat Linux 6.2.0 i386
  • RedHat Linux 6.2.0 sparc
  • Turbolinux Turbolinux 6.0.0
  • Turbolinux Turbolinux 6.0.1
  • Turbolinux Turbolinux 6.0.2
  • Turbolinux Turbolinux 6.0.3
  • Turbolinux Turbolinux 6.0.4

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.