RedHat: 'mktemp' tmp directory vulnerability
Posted by LinuxSecurity.com Team   
RedHat Linux The version of mktemp shipped with Red Hat Linux prior to version 7 does not support creating temporary directories.

---------------------------------------------------------------------
                   Red Hat, Inc. Red Hat Security Advisory

Synopsis:          Updated mktemp packages available
Advisory ID:       RHSA-2001:070-02
Issue date:        2001-05-15
Updated on:        2001-05-21
Product:           Red Hat Linux
Keywords:          mktemp directory creation -d
Cross references:  
Obsoletes:         
---------------------------------------------------------------------

1. Topic:

The version of mktemp shipped with Red Hat Linux prior to version 7 does 
not support creating temporary directories.

2. Relevant releases/architectures:



Red Hat Linux 5.2 - alpha, i386, sparc

Red Hat Linux 6.2 - alpha, i386, sparc

3. Problem description:

Older versions of mktemp don't support the "-d" parameter to create 
temporary directories safely.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.  Only those
RPMs which are currently installed will be updated.  Those RPMs which are
not installed but included in the list will not be updated.  Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network.  Many
people find this an easier way to apply updates.  To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

5. Bug IDs fixed  (http://bugzilla.Red Hat.com/bugzilla for more info):



6. RPMs required:

Red Hat Linux 5.2:

SRPMS: 
ftp://updates.Red Hat.com/5.2/en/os/SRPMS/mktemp-1.5-2.1.5x.src.rpm

alpha: 
ftp://updates.Red Hat.com/5.2/en/os/alpha/mktemp-1.5-2.1.5x.alpha.rpm

i386: 
ftp://updates.Red Hat.com/5.2/en/os/i386/mktemp-1.5-2.1.5x.i386.rpm

sparc: 
ftp://updates.Red Hat.com/5.2/en/os/sparc/mktemp-1.5-2.1.5x.sparc.rpm

Red Hat Linux 6.2:

SRPMS: 
ftp://updates.Red Hat.com/6.2/en/os/SRPMS/mktemp-1.5-2.1.6x.src.rpm

alpha: 
ftp://updates.Red Hat.com/6.2/en/os/alpha/mktemp-1.5-2.1.6x.alpha.rpm

i386: 
ftp://updates.Red Hat.com/6.2/en/os/i386/mktemp-1.5-2.1.6x.i386.rpm

sparc: 
ftp://updates.Red Hat.com/6.2/en/os/sparc/mktemp-1.5-2.1.6x.sparc.rpm


7. Verification:

MD5 sum                           Package Name
--------------------------------------------------------------------------
 94ea90c56aa2c048913c1671f44a6cf5 5.2/en/os/SRPMS/mktemp-1.5-2.1.5x.src.rpm
07cc49b2258e6ce4f00bded444ee3d00 5.2/en/os/alpha/mktemp-1.5-2.1.5x.alpha.rpm
862bf906743dba738210d8e7644e2cd3 5.2/en/os/i386/mktemp-1.5-2.1.5x.i386.rpm
b37d318692785b7d5120fd194c1f07b2 5.2/en/os/sparc/mktemp-1.5-2.1.5x.sparc.rpm
834ae7978e494618ae0efd9bf762dea9 6.2/en/os/SRPMS/mktemp-1.5-2.1.6x.src.rpm
85775d4f8a7a5443010018dfdfc5d69e 6.2/en/os/alpha/mktemp-1.5-2.1.6x.alpha.rpm
e3e46dea469df08b98934713b7dfc129 6.2/en/os/i386/mktemp-1.5-2.1.6x.i386.rpm
8dcb3ffc8b48f9d50a4e4976f7f00f5b 6.2/en/os/sparc/mktemp-1.5-2.1.6x.sparc.rpm

These packages are GPG signed by Red Hat, Inc. for security.  Our key
is available at:
     http://www.Red Hat.com/corp/contact.html

You can verify each package with the following command:
    rpm --checksig  

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
    rpm --checksig --nogpg 

8. References:




Copyright(c) 2000, 2001 Red Hat, Inc.