Gentoo Portage Sandbox Insecure Temporary Lockfile Creation Vulnerability

BID:10060

Info

Gentoo Portage Sandbox Insecure Temporary Lockfile Creation Vulnerability

Bugtraq ID: 10060
Class: Access Validation Error
CVE:
Remote: No
Local: Yes
Published: Apr 06 2004 12:00AM
Updated: Apr 06 2004 12:00AM
Credit: The vendor announced this vulnerability.
Vulnerable: Gentoo Linux 1.4 _rc3
Gentoo Linux 1.4 _rc2
Gentoo Linux 1.4 _rc1
Gentoo Linux 1.4
Not Vulnerable:

Discussion

Gentoo Portage Sandbox Insecure Temporary Lockfile Creation Vulnerability

Gentoo portage has been reported prone to an insecure temporary file creation vulnerability. The vulnerability exists because portage creates a lockfile with a predictable name in a world writeable location.

An attacker may create many symbolic hard links in the "/tmp" folder, named with incrementing filenames in an attempt to predict the PID of the vulnerable process. These links will point to a file that the attacker wishes to corrupt. When portage is executed the file that is linked will be overwritten with a blank file with the privileges of the user who is invoking the portage application.

Exploit / POC

Gentoo Portage Sandbox Insecure Temporary Lockfile Creation Vulnerability

There is no exploit required.

Solution / Fix

Gentoo Portage Sandbox Insecure Temporary Lockfile Creation Vulnerability

Solution:
Gentoo have recommended that users upgrade to Portage 2.0.50-r3 or later to resolve this issue. This can be accomplished by executing the following commands:
# emerge sync
# emerge -pv ">=sys-apps/portage-2.0.50-r3"
# emerge ">=sys-apps/portage-2.0.50-r3"

References

Gentoo Portage Sandbox Insecure Temporary Lockfile Creation Vulnerability

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