glibc LD_PRELOAD File Overwriting Vulnerability

BID:2223

Info

glibc LD_PRELOAD File Overwriting Vulnerability

Bugtraq ID: 2223
Class: Input Validation Error
CVE:
Remote: No
Local: Yes
Published: Jan 16 2001 12:00AM
Updated: Jan 16 2001 12:00AM
Credit: This vulnerability was announced in a Red Hat Security Advisory posted to Bugtraq on January 16, 2001.
Vulnerable: Turbolinux Turbolinux 6.1
Turbolinux Turbolinux 6.0.5
Trustix Secure Linux 1.2
Trustix Secure Linux 1.1
Redhat nscd-2.1.3-15.i386.rpm
+ Redhat Linux 6.2
Redhat nscd-2.1.2-11.i386.rpm
+ Redhat Linux 6.1
Redhat nscd-2.1.1-6.i386.rpm
+ Redhat Linux 6.0
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
Redhat glibc-profile-2.1.3-15.i386.rpm
+ Redhat Linux 6.2
Redhat glibc-profile-2.1.2-11.i386.rpm
+ Redhat Linux 6.1
Redhat glibc-profile-2.1.1-6.i386.rpm
+ Redhat Linux 6.0
Redhat glibc-devel-2.1.3-15.i386.rpm
+ Redhat Linux 6.2
Redhat glibc-devel-2.1.2-11.i386.rpm
+ Redhat Linux 6.1
Redhat glibc-devel-2.1.1-6.i386.rpm
+ Redhat Linux 6.0
Redhat glibc-2.1.3-15.i386.rpm
+ Redhat Linux 6.2
Redhat glibc-2.1.2-11.i386.rpm
+ Redhat Linux 6.1
Redhat glibc-2.1.1-6.i386.rpm
+ Redhat Linux 6.0
Mandriva Linux Mandrake 7.2
Mandriva Linux Mandrake 7.1
Mandriva Linux Mandrake 7.0
Mandriva Linux Mandrake 6.1
Mandriva Linux Mandrake 6.0
MandrakeSoft Corporate Server 1.0.1
Debian Linux 2.2 sparc
Debian Linux 2.2 powerpc
Debian Linux 2.2 arm
Debian Linux 2.2 alpha
Debian Linux 2.2 68k
Debian Linux 2.2
Not Vulnerable:

Discussion

glibc LD_PRELOAD File Overwriting Vulnerability

glibc is the GNU C Library, a freely available, open source C library maintained by public domain, and distributed by the Free Software Foundation. It is included in most current Linux distributions.

A problem with the library could allow access to write or overwrite restricted files. Upon execution of SUID and SGID applications, the library allows a user to preload libraries in the environment variable LD_PRELOAD providing the variable does not contain forward slashes. A special check is also performed to ensure the library being preloaded is SUID. However, if the library is found in the /etc/ld.so.cache file, this check is circumvented, and never performed. It is therefore possible to load a library from /lib or /usr/lib prior to the execution of a SUID or SGID program. This flaw makes it possible for a user with malicious motives to create files in restricted locations, or overwrite files outside of the access of this user, including system files.

Exploit / POC

glibc LD_PRELOAD File Overwriting 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

glibc LD_PRELOAD File Overwriting Vulnerability

Solution:
Upgrades available:


Redhat glibc-2.1.3-15.i386.rpm

Redhat glibc-devel-2.1.2-11.i386.rpm

Redhat nscd-2.1.2-11.i386.rpm

Redhat glibc-devel-2.1.3-15.i386.rpm

Redhat glibc-profile-2.1.1-6.i386.rpm

Redhat glibc-2.1.1-6.i386.rpm

Redhat glibc-profile-2.1.3-15.i386.rpm

Redhat nscd-2.1.3-15.i386.rpm

Redhat glibc-devel-2.1.1-6.i386.rpm

Redhat nscd-2.1.1-6.i386.rpm

Redhat glibc-2.1.2-11.i386.rpm

Redhat glibc-profile-2.1.2-11.i386.rpm

MandrakeSoft Corporate Server 1.0.1

Trustix Secure Linux 1.1

Trustix Secure Linux 1.2

Debian Linux 2.2 powerpc

Debian Linux 2.2

Debian Linux 2.2 arm

Debian Linux 2.2 alpha

Debian Linux 2.2 sparc

Debian Linux 2.2 68k

Redhat Linux 6.0 alpha

Redhat Linux 6.0

Mandriva Linux Mandrake 6.0

Redhat Linux 6.0 sparc

Turbolinux Turbolinux 6.0.5

Redhat Linux 6.1 sparc

Turbolinux Turbolinux 6.1

Redhat Linux 6.1 alpha

Redhat Linux 6.1 i386

Mandriva Linux Mandrake 6.1

Redhat Linux 6.2 alpha

Redhat Linux 6.2 i386

Redhat Linux 6.2 sparc

Mandriva Linux Mandrake 7.0

Mandriva Linux Mandrake 7.1

Mandriva Linux Mandrake 7.2

References

glibc LD_PRELOAD File Overwriting 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