Gentoo Logo

pmake: Insecure temporary file usage

Content:

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 < 1.111.3.1 >= 1.111.3.1 All supported architectures

Related bugreports: #367891

Synopsis

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

2.  Impact Information

Background

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

Description

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

Impact

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

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All pmake users should upgrade to the latest version:

Code Listing 3.1: Resolution

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

4.  References



Print

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-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.