FreeBSD Jail RC.D Multiple Local Symbolic Link Vulnerabilities

BID:22011

Info

FreeBSD Jail RC.D Multiple Local Symbolic Link Vulnerabilities

Bugtraq ID: 22011
Class: Design Error
CVE: CVE-2007-0166
Remote: No
Local: Yes
Published: Jan 11 2007 12:00AM
Updated: Aug 02 2007 04:15PM
Credit: Dirk Engling discovered these vulnerabilities.
Vulnerable: FreeBSD FreeBSD 6.0 .x
FreeBSD FreeBSD 6.0 -STABLE
FreeBSD FreeBSD 6.0 -RELEASE
FreeBSD FreeBSD 5.5 -STABLE
FreeBSD FreeBSD 5.5 -RELEASE
FreeBSD FreeBSD 5.4 -RELENG
FreeBSD FreeBSD 5.4 -RELEASE
FreeBSD FreeBSD 5.4 -PRERELEASE
FreeBSD FreeBSD 5.3 -STABLE
FreeBSD FreeBSD 5.3 -RELENG
FreeBSD FreeBSD 5.3 -RELEASE
FreeBSD FreeBSD 5.3
FreeBSD FreeBSD 6.2
FreeBSD FreeBSD 6.1 -STABLE
FreeBSD FreeBSD 6.1 -RELEASE-p10
FreeBSD FreeBSD 6.1 -RELEASE
FreeBSD FreeBSD 6.0 -RELEASE-p5
FreeBSD FreeBSD 5.4-STABLE
Not Vulnerable:

Discussion

FreeBSD Jail RC.D Multiple Local Symbolic Link Vulnerabilities

FreeBSD is prone to multiple local symbolic-link vulnerabilities because the jail startup 'rc.d' script fails to properly ensure that certain operations are not performed on symbolic links.

Successfully exploiting these issues allows users with superuser privileges inside jailed environments to overwrite arbitrary files in the host environment, overlay filesystems in arbitrary locations in the host filesystem, or to unmount filesystems in the host filesystem. These issues allow attackers to execute arbitrary machine code with superuser privileges in the host environment, escaping the jailed environment.

FreeBSD versions since version 5.3 are vulnerable to these issues.

Exploit / POC

FreeBSD Jail RC.D Multiple Local Symbolic Link Vulnerabilities

Attackers can use standard filesystem utilities to exploit these issues.

Solution / Fix

FreeBSD Jail RC.D Multiple Local Symbolic Link Vulnerabilities

Solution:
FreeBSD has released an advisory along with patches to address these issues. Fixes have been committed to FreeBSD's CVS repository as of January 11, 2007. Please see the references for more information.


FreeBSD FreeBSD 6.1 -RELEASE

FreeBSD FreeBSD 6.1 -STABLE

FreeBSD FreeBSD 6.1 -RELEASE-p10

FreeBSD FreeBSD 6.0 -RELEASE-p5

FreeBSD FreeBSD 5.5 -STABLE

FreeBSD FreeBSD 5.5 -RELEASE

FreeBSD FreeBSD 6.0 .x

FreeBSD FreeBSD 6.0 -RELEASE

FreeBSD FreeBSD 6.0 -STABLE

References

FreeBSD Jail RC.D Multiple Local Symbolic Link Vulnerabilities

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