-----BEGIN PGP SIGNED MESSAGE-----
AUSCERT External Security Bulletin Redistribution
ESB-2005.0889 -- NetBSD Security Advisory 2005-009
Insecure /tmp file usage when building using imake
8 November 2005
AusCERT Security Bulletin Summary
Product: packages built with imake
Operating System: NetBSD-current (source prior to September 13, 2005)
NetBSD 2.0.2 and prior
Impact: Overwrite Arbitrary Files
Access: Existing Account
- --------------------------BEGIN INCLUDED TEXT--------------------
- -----BEGIN PGP SIGNED MESSAGE-----
NetBSD Security Advisory 2005-009
Topic: Insecure /tmp file usage when building using imake
Version: NetBSD-current: source prior to September 13, 2005
NetBSD 2.1: not affected
NetBSD 2.0.3: not affected
NetBSD 2.0.2: affected
NetBSD 2.0: affected
NetBSD 1.6.2: affected
NetBSD 1.6.1: affected
NetBSD 1.6: affected
pkgsrc: imake package prior to 4.4.0nb2 and
xorg-imake prior to 6.8.2nb2
Severity: overwrite arbitrary files on the system
Fixed: NetBSD-current: September 12, 2005
NetBSD-3 branch: September 12, 2005
(3.0 will include the fix)
NetBSD-2.0 branch: September 13, 2005
(2.0.3 includes the fix)
NetBSD-2 branch: September 13, 2005
(2.1 includes the fix)
NetBSD-1.6 branch: September 14, 2005
(1.6.3 will include the fix)
pkgsrc: imake-4.4.0nb2 and xorg-imake-6.8.2nb2
or higher correct the issue
Makefiles generated with imake use an insecure temporary file in /tmp
The issue is in the make target for generating the pre-formatted manual
page. This is for software using imake using NetBSD.cf for builds.
Malicious users can pre-generate symlinks to point to important files
(so they will be overwritten) and possibly cause a local denial of
service if the make process is run with elevated privileges.
On NetBSD, many pkgsrc packages built using imake are affected. For
example, building xvier, xmeter, transfig, tightvncviewer, xcolorsel,
magicpoint, fvwm1, xearth, xalarm, xmmix, and many others, use this make
This issue has been reported to and corrected by X.org and XFree86.
Solutions and Workarounds
This issue affects only machines which build software using imake and
which also use the target to generate pre-formatted manual pages.
However, since no binary rebuilding is required in order to fix this
issue, it is recommended that all users upgrade their sources.
The following instructions describe how to update your source tree.
Source trees dated from before 2005-09-12 should be upgraded to
sources dated 2005-09-13 or later.
The following directories need to be updated from CVS:
To update from CVS:
# cd xsrc
# cvs update -d -P xfree/xc/config/cf/NetBSD.cf
# cp xfree/xc/config/cf/NetBSD.cf /usr/X11R6/lib/X11/config/NetBSD.cf
The issue was discovered and reported by Jeremy C. Reed.
2005-10-31 Initial release
Advisories may be updated as new information becomes available.
The most recent version of this advisory (PGP signed) can be found at
Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.org/ and http://www.NetBSD.org/Security/.
Copyright 2005, The NetBSD Foundation, Inc. All Rights Reserved.
Redistribution permitted only in full, unmodified form.
$NetBSD: NetBSD-SA2005-009.txt,v 1.15 2005/10/31 19:07:50 gendalia Exp $
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
- -----END PGP SIGNATURE-----
- --------------------------END INCLUDED TEXT--------------------
You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to firstname.lastname@example.org
and we will forward your request to the appropriate person.
NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members. As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.
NOTE: This is only the original release of the security bulletin. It may
not be updated when updates to the original are made. If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.
Contact information for the authors of the original document is included
in the Security Bulletin above. If you have any questions or need further
information, please contact them directly.
Previous advisories and external security bulletins can be retrieved from:
If you believe that your computer system has been compromised or attacked in
any way, we encourage you to let us know by completing the secure National IT
Incident Reporting Form at:
Australian Computer Emergency Response Team
The University of Queensland
Internet Email: email@example.com
Facsimile: (07) 3365 7031
Telephone: (07) 3365 4417 (International: +61 7 3365 4417)
AusCERT personnel answer during Queensland business hours
which are GMT+10:00 (AEST).
On call after hours for member emergencies only.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----