Title: Multiple Vendor libncurses Terminfo Buffer Overflow Vulnerability
Severity: MODERATE
Description:
Libncurses is a CRT screen handling C library. Libncurses and derived or closely related libraries contain buffer overflow vulnerabilities that may allow attackers to exploit setuid/setgid programs linked to them and elevate their privileges.
When libncurses is loaded, it looks for termcap entries in the ~/.terminfo file, if it exists. During interpretation of this file, string copies are made of data from within the file to local buffers on the process' stack. Some of the copy operations are unsafe -- they do not ensure that the amount of bytes copied does not exceed the predefined buffer size. If an attacker were to create a .terminfo file containing oversized fields, the extra data will overwrite bytes on the stack beyond the boundaries of the destination buffer when copied. This is a classic buffer overflow condition.
An attacker may exploit this vulnerability in programs that are linked to libncurses and gain their effective privileges.
It should be noted that being linked to ncurses doesn't immediately make a program vulnerable to this bug. The vulnerable program must use the offending functions in some way in order to be exploitable.
Affected Products:
- Debian Linux 2.2.0 68k
- Debian Linux 2.2.0 IA-32
- Debian Linux 2.2.0 alpha
- Debian Linux 2.2.0 arm
- Debian Linux 2.2.0 powerpc
- Debian Linux 2.2.0 sparc
- FreeBSD FreeBSD 3.1.0
- FreeBSD FreeBSD 3.2.0
- FreeBSD FreeBSD 3.3.0
- FreeBSD FreeBSD 3.4.0
- FreeBSD FreeBSD 3.5.0
- FreeBSD FreeBSD 3.5.1
- FreeBSD FreeBSD 4.0.0
- FreeBSD FreeBSD 4.1.0
- FreeBSD FreeBSD 4.1.1
- FreeBSD FreeBSD 5.0.0
- HP Secure OS software for Linux 1.0.0
- RedHat Linux 6.1.0 alpha
- RedHat Linux 6.1.0 i386
- RedHat Linux 6.1.0 sparc
- RedHat Linux 7.0.0 alpha
- RedHat Linux 7.0.0 i386
- RedHat Linux 7.1.0 alpha
- RedHat Linux 7.1.0 i386
- RedHat Linux 7.2.0 i386
- S.u.S.E. Linux 6.2.0
- S.u.S.E. Linux 6.3.0
- S.u.S.E. Linux 7.0.0
- Turbolinux Turbolinux 6.0.5
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.