The (1) pj-gs.sh, (2) ps2epsi, (3) pv.sh, and (4) sysvlp.sh scripts in the ESP Ghostscript (espgs) package in Trustix Secure Linux 1.5 through 2.1, and other operating systems, allow local users to overwrite files via a symlink attack on temporary files.
https://www.ubuntu.com/usn/usn-3-1/
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10284
https://exchange.xforce.ibmcloud.com/vulnerabilities/17583
http://www.trustix.org/errata/2004/0050
http://www.securityfocus.com/bid/11285
http://www.redhat.com/support/errata/RHSA-2005-081.html
http://secunia.com/advisories/20056
http://secunia.com/advisories/19799
http://secunia.com/advisories/17135