3.3
CWE
59
Advisory Published
CVE Published
Updated

CVE-2011-1920

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 &lt; .depend &gt; $$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&amp;r2=1.240">http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.lib.mk.diff?r1=1.239&amp;r2=1.240</a> [3] <a href="http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.prog.mk.diff?r1=1.192&amp;r2=1.193">http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.prog.mk.diff?r1=1.192&amp;r2=1.193</a>

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203