Eterm libast conf_find_file() file name -x buffer overflow

eterm-libast-filename-bo (24303) The risk level is classified as HighHigh Risk

Description:

Eterm is vulnerable to a stack-based buffer overflow caused by improper bounds checking of file names by the conf_find_file() function. By supplying an overly long configuration file name to Eterm using the -x option, a local attacker could overflow a buffer in libast and execute arbitrary commands on the system with utmp privileges.

Platforms Affected:

  • Debian, Debian Linux 3.0
  • Debian, Debian Linux 3.1
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 2006
  • MandrakeSoft, Mandrake Linux 2006 X86_64
  • Michael Jennings, Eterm 0.9.2
  • Michael Jennings, libast prior to 0.7

Remedy:

Upgrade to the latest version of libast (0.7 or later), available from Eterm.org. See References.

For Debian GNU/Linux:
Refer to DSA-976-1 for patch, upgrade, or suggested workaround information. See References.

For Gentoo Linux:
Refer to Gentoo Linux Security Announcement GLSA 2006-01-14 for patch, upgrade, or suggested workaround information. See References.

Consequences:

Gain Privileges

References:

  • Eterm.Org, Downloads at http://www.eterm.org/download/.
  • Rosiello Security Advisory 2006-01-23, Eterm-LibAST Advisory at http://www.rosiello.org/en/read_bugs.php?id=25.
  • BID-16350: Eterm LibAST Library Local Buffer Overflow Vulnerability
  • CVE-2006-0224: Buffer overflow in Library of Assorted Spiffy Things (LibAST) 0.6.1 and earlier, as used in Eterm and possibly other software, allows local users to execute arbitrary code as the utmp user via a long -X command line argument (alternative configuration file name).
  • DSA-976: libast -- buffer overflow
  • GLSA-200601-14: LibAST: Privilege escalation
  • MDKSA-2006:029: Updated libast packages fixes buffer overflow vulnerability
  • SA18586: LibAST Configuration Filename Buffer Overflow Vulnerability
  • VUPEN/ADV-2006-0314: Eterm LibAST Configuration Engine Local Privilege Escalation Vulnerability

Reported:

Jan 23, 2006

The information within this database may change without notice. 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. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page