Description
(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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | localepurge | 0.7.3.2 | — |
| Debian 13 | localepurge | 0.7.3.2 | — |
| Debian 12 | localepurge | 0.7.3.2 | — |
References
- [oss-security] 20140122 Re: Getting tempfile/mktemp wrong mailing-list
- 102379 vdb-entry
- localepurge-cve20141638-symlink(90669) vdb-entry
- 65098 vdb-entry
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736359
- 102381 vdb-entry
- [oss-security] 20140122 Getting tempfile/mktemp wrong mailing-list