CVE-2011-1920: Low severity netbsd current vulnerability

Published 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] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626673 [2] http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.lib.mk.diff?r1=1.239&r2=1.240 [3] http://cvsweb.netbsd.org/bsdweb.cgi/src/share/mk/bsd.prog.mk.diff?r1=1.192&r2=1.193

Other sources

The make include files in NetBSD before 1.6.2, as used in pmake 1.111 and other products, allow local users to overwrite arbitrary files via a symlink attack on a /tmp/depend##### temporary file, related to (1) bsd.lib.mk and (2) bsd.prog.mk.

Affected Software

20 affected components
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

Event History

May 16, 2011
Data Sourced
via Red Hat·03:55 PM
DescriptionSeverityAffected Software
May 23, 2011
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
10:55 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2011-1920?

CVE-2011-1920 is classified as a medium severity vulnerability.

2

How do I fix CVE-2011-1920?

To fix CVE-2011-1920, update the affected software to the latest secure version which addresses the insecure temporary file creation.

3

What software is affected by CVE-2011-1920?

CVE-2011-1920 affects the NetBSD operating system and the Ihji Pmake utility.

4

What type of vulnerability is CVE-2011-1920?

CVE-2011-1920 is a vulnerability involving insecure temporary file creation with predictable filenames.

5

Can CVE-2011-1920 lead to unauthorized access?

Yes, CVE-2011-1920 can potentially lead to unauthorized access due to the predictable nature of the temporary file names.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203