Gentoo Logo

pmake: Insecure temporary file usage


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201310-17 / pmake
Release Date October 28, 2013
Latest Revision October 28, 2013: 2
Impact low
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
sys-devel/pmake < >= All supported architectures

Related bugreports: #367891


pmake uses temporary files in an insecure manner, allowing for symlink attacks.

2.  Impact Information


pmake is Debian’s version of NetBSD’s make, a tool to build programs in parallel.


/usr/share/mk/ and /usr/share/mk/ create temporary files insecurely, with predictable names (/tmp/_depend[PID]), and without using $TMPDIR.


The make include files allow local users to overwrite arbitrary files via a symlink attack.

3.  Resolution Information


There is no known workaround at this time.


All pmake users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=sys-devel/pmake-"

4.  References


Page updated October 28, 2013

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.