Joined: 25 Feb 2003
Location: Essen, Germany
|Posted: Thu Oct 21, 2004 6:52 pm Post subject: [ GLSA 200410-19 ] glibc: Insecure tempfile handling in catc
|Gentoo Linux Security Advisory
Title: glibc: Insecure tempfile handling in catchsegv script (GLSA 200410-19)
Date: October 21, 2004
The catchsegv script in the glibc package is vulnerable to symlink attacks, potentially allowing a local user to overwrite arbitrary files with the rights of the user running the script.
glibc is a package that contains the GNU C library.
Vulnerable: <= 188.8.131.5240808
Unaffected: >= 2.2.5-r9 < 2.2.6
Unaffected: >= 2.3.2-r12 < 2.3.3
Unaffected: >= 184.108.40.20640420-r2 < 220.127.116.1140421
Unaffected: >= 18.104.22.16840619-r2 < 22.214.171.12440620
Unaffected: >= 126.96.36.19940808-r1
Architectures: All supported architectures
The catchsegv script creates temporary files in world-writeable directories with predictable names.
A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When catchsegv script is called, this would result in the file being overwritten with the rights of the user running the utility, which could be the root user.
There is no known workaround at this time.
All glibc users should upgrade to the latest version:
|# emerge sync
# emerge -pv sys-libs/glibc
# emerge sys-libs/glibc
Last edited by GLSA on Sun May 07, 2006 4:53 pm; edited 1 time in total