(1) debian/postrm and (2) debian/localepurge.config in localepurge before 0.7.3.2 use tempfile to create a safe temporary file but appends a suffix to the original filename and writes to this new filename, which allows local users to overwrite arbitrary files via a symlink attack on the new filename.
https://exchange.xforce.ibmcloud.com/vulnerabilities/90669
http://www.securityfocus.com/bid/65098
http://www.openwall.com/lists/oss-security/2014/01/22/4