J-Security Center

Title: Multiple Vendor Termcap tgetent() Buffer Overflow

Severity: INFO

Description:

A buffer overflow existed in libtermcap's tgetent() function, which could cause the user to execute arbitrary code if they were able to supply their own termcap file. Versions of libtermcap 2.0.8 and earliear are vulnerable.

Under Red Hat Linux 5.2 and 4.2, this could lead to local users gaining root privileges, as xterm (as well as other possibly setuid programs) are linked against libtermcap. Under Red Hat Linux 6.0, xterm is not setuid root.

Debian and Caldera OpenLinux use the ncurses library instead of termcap and thus are not vulnerable.

Affected Products:

  • RedHat Linux 4.0.0
  • RedHat Linux 4.1.0
  • RedHat Linux 4.2.0
  • RedHat Linux 5.0.0
  • RedHat Linux 5.1.0
  • RedHat Linux 5.2.0 i386
  • RedHat Linux 6.0.0
  • Slackware Linux 3.2.0
  • Slackware Linux 3.3.0
  • Slackware Linux 3.4.0
  • Slackware Linux 3.5.0
  • Slackware Linux 3.6.0
  • Slackware Linux 3.9.0
  • Slackware Linux 4.0.0

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.