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.
|Package||sys-libs/glibc on all architectures|
|Affected versions||<= 188.8.131.5240808|
|Unaffected versions||revision >= 2.2.5-r9, revision >= 2.3.2-r12, revision >= 184.108.40.20640420-r2, revision >= 220.127.116.1140619-r2, >= 18.104.22.16840808-r1|
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
October 21, 2004
October 21, 2004: 01