Multiple Vendor BSD make /tmp Race Condition Vulnerability

BID:939

Info

Multiple Vendor BSD make /tmp Race Condition Vulnerability

Bugtraq ID: 939
Class: Race Condition Error
CVE:
Remote: No
Local: Yes
Published: Jan 19 2000 12:00AM
Updated: Jan 19 2000 12:00AM
Credit: First exposed in a FreeBSD Security Advisory, published on January 19, 2000.
Vulnerable: OpenBSD OpenBSD 2.6
NetBSD NetBSD 1.4.1 x86
FreeBSD FreeBSD 3.4
Not Vulnerable:

Discussion

Multiple Vendor BSD make /tmp Race Condition Vulnerability

There is an exploitable race condition in BSD derived versions of make. The problem lies in the way that make communicates with its children processes when passed the -j parameter. "make" does so by writing shell commands to temporary files in /tmp, which the children process read (and then execute..). In the process of doing this, "make" creates and resuses temporary files several times with known filenames. If the file name being used were to be observed by an attacker, it is possible to write arbitrary commands to these files immediately after legitimate ones, then have them executed by the child processes if the race is won.

Exploit / POC

Multiple Vendor BSD make /tmp Race Condition Vulnerability

Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].

Solution / Fix

References

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report