First published: Mon May 16 2011(Updated: )
A Debian bug report [1] noted that pmake (and mk-files in Fedora) contained the files /usr/share/mk/bsd.{lib,prog}.mk that created temporary files insecurely with predictable file names in /tmp (/tmp/_depend[PID]), ignoring any $TMPDIR values. In lib.mk: 446 afterdepend: .depend 447 @(TMP=/tmp/_depend$$$$; \ 448 sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.so \1.ln:/' \ 449 < .depend > $$TMP; \ 450 mv $$TMP .depend) 451 .endif The same is found in prog.mk (in Fedora's mk-files package). The Debian bug report proposes to use mktemp here: - @(TMP=/tmp/_depend$$$$; \ + @(TMP=`mktemp -t _dependXXXXXXXXXX` || exit $$?; \ Upstream has already corrected this by removing the offending code [2],[3]. [1] <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626673">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626673</a> [2] <a href="http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.lib.mk.diff?r1=1.239&r2=1.240">http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.lib.mk.diff?r1=1.239&r2=1.240</a> [3] <a href="http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.prog.mk.diff?r1=1.192&r2=1.193">http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.prog.mk.diff?r1=1.192&r2=1.193</a>
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
NetBSD NetBSD | ||
NetBSD NetBSD | <=1.6.1 | |
NetBSD NetBSD | =1.0 | |
NetBSD NetBSD | =1.1 | |
NetBSD NetBSD | =1.2 | |
NetBSD NetBSD | =1.2.1 | |
NetBSD NetBSD | =1.3 | |
NetBSD NetBSD | =1.3.1 | |
NetBSD NetBSD | =1.3.2 | |
NetBSD NetBSD | =1.3.3 | |
NetBSD NetBSD | =1.4 | |
NetBSD NetBSD | =1.4.1 | |
NetBSD NetBSD | =1.4.2 | |
NetBSD NetBSD | =1.4.3 | |
NetBSD NetBSD | =1.5 | |
NetBSD NetBSD | =1.5.1 | |
NetBSD NetBSD | =1.5.2 | |
NetBSD NetBSD | =1.5.3 | |
NetBSD NetBSD | =1.6 | |
Ihji Pmake | =1.111 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.