glibc: Insecure tempfile handling in catchsegv script 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 October 21, 2004 October 21, 2004: 01 66358 local 2.2.5-r9 2.3.2-r12 2.3.3.20040420-r2 2.3.4.20040619-r2 2.3.4.20040808-r1 2.3.4.20040808

glibc is a package that contains the GNU C library.

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
CAN-2004-0968 koon koon lewk