The send_data_to_stdout function in prnt/hpijs/hpcupsfax.cpp in HP Linux Imaging and Printing (HPLIP) 3.x before 3.11.10 allows local users to overwrite arbitrary files via a symlink attack on the /tmp/hpcupsfax.out temporary file.
https://bugzilla.redhat.com/show_bug.cgi?id=725830
https://bugzilla.redhat.com/attachment.cgi?id=515866&action=diff
https://bugzilla.novell.com/show_bug.cgi?id=704608
https://bugs.launchpad.net/hplip/+bug/809904
http://www.ubuntu.com/usn/USN-1981-1
http://www.openwall.com/lists/oss-security/2011/07/26/14
http://security.gentoo.org/glsa/glsa-201203-17.xml
http://secunia.com/advisories/55083
http://secunia.com/advisories/48441