Home page logo

fulldisclosure logo Full Disclosure mailing list archives

OpenServer 5.0.6 OpenServer 5.0.7 : chroot A known exploit can break a chroot prison.
From: please_reply_to_security () sco com
Date: Wed, 11 May 2005 11:17:13 -0700

Hash: SHA1


                        SCO Security Advisory

Subject:                OpenServer 5.0.6  OpenServer 5.0.7 : chroot A known exploit can break a chroot prison.
Advisory number:        SCOSA-2005.22
Issue date:             May 11 2005
Cross reference:        sr887583 fz528523 erg712505 CAN-2004-1124

1. Problem Description

        chroot() is a system call that is often used to provide an
        additional layer of security when untrusted programs are
        run. The call to chroot() is normally used to ensure that
        code run after it can only access files at or below a given

        Originally, chroot() was used to test systems software in 
        a safe environment. It is now generally used to lock users 
        into an area of the file system so that they can not look 
        at or affect the important parts of the system they are on. 
        Several programs use chroot jails to ensure that even if 
        you break into the process's address space, you can't do 
        anything harmful to the whole system. If chroot() can be 
        broken then this precaution is broken. 

        A known exploit can break a chroot prison.

        The Common Vulnerabilities and Exposures project 
        (cve.mitre.org) has assigned the name CAN-2004-1124 to t
        his issue.

        A new variable chroot_security has been added to 
        /etc/conf/pack.d/kernel/space.c, which if set should 
        prevent escape from chroot prison.  The default value for 
        chroot_security is '1' to disable it set it to '0'.

        chroot() is a good way to increase the security of the
        software provided that secure programming guidelines are 
        utilized and chroot() system call limitations are taken 
        into account.  Chrooting will prevent an attacker from 
        reading files outside the chroot jail and will prevent 
        many local UNIX attacks (such as SUID abuse and /tmp 
        race conditions).

        The number of ways that root user can break out of chroot 
        is huge.  If there is no root user defined within the 
        chroot environment, no SUID binaries, no devices, and 
        the daemon itself dropped root privileges right after 
        calling chroot() call breaking out of chroot appears to 
        be impossible.

2. Vulnerable Supported Versions

        System                          Binaries
        OpenServer 5.0.6                /var/etc/conf/pack.d/kernel/sys4.o
        OpenServer 5.0.7                /var/etc/conf/pack.d/kernel/sys4.o

3. Solution

        The proper solution is to install the latest packages.

4. OpenServer 5.0.6 / OpenServer 5.0.7

        4.1 Location of Fixed Binaries


        4.2 Verification

        MD5 (VOL.000.000) = 2446d28490219ddc4bab7e85ccd57723  

        md5 is available for download from

        4.3 Installing Fixed Binaries

        Upgrade the affected binaries with the following sequence:

        1) Download the VOL* files to a directory

        2) Run the custom command, specify an install from media
        images, and specify the directory as the location of the

5. References

        Specific references for this advisory:

        SCO security resources:

        SCO security advisories via email

        This security fix closes SCO incidents sr887583 fz528523

6. Disclaimer

        SCO is not responsible for the misuse of any of the information
        we provide on this website and/or through our security
        advisories. Our advisories are a service to our customers
        intended to promote secure installation and use of SCO

7. Acknowledgments

        SCO would like to thank Simon Roses Femerling


Version: GnuPG v1.4.1 (SCO/SYSV)

Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]