Red Hat Linux General Security Advisory

 
Red Hat, Inc. Security Advisory
Synopsis ghostscript uses mktemp instead of mkstemp, and uses an improper LD_RUN_PATH

Advisory ID RHSA-2000:114-04

Issue Date 2000-11-22

Updated On 2000-11-26

Product Red Hat Linux

Keywords ghostscript mktemp LD_RUN_PATH

Cross References N/A



1. Topic:

ghostscript makes use of mktemp instead of mkstemp to create temp files;

and also uses improper LD_RUN_PATH values, causing it to search for

libraries in the current directory.



2000-11-27: Added packages for Red Hat Linux 7 for Alpha

2. Problem description:

ghostscript makes use of mktemp to create temp files, which is an insecure

and predictable apporoach, it is now patched to use mkstemp, which avoid

the race condition on the name.



It also uses improper LD_RUN_PATH values, causing ghostscript to search for

libraries to load in current directorys.

3. Bug IDs fixed: (see bugzilla for more information)

20924 - gs reads libraries from current directory

4. Relevant releases/architectures:

Red Hat Linux 5.0 - i386, alpha, sparc
Red Hat Linux 5.1 - i386, alpha, sparc
Red Hat Linux 5.2 - i386, alpha, sparc
Red Hat Linux 6.0 - i386, alpha, sparc
Red Hat Linux 6.1 - i386, alpha, sparc
Red Hat Linux 6.2 - i386, alpha, sparc
Red Hat Linux 7.0 - i386, alpha

5. RPMs required:

Red Hat Linux 5.2:

alpha:
ftp://updates.redhat.com/5.2/en/os/alpha/ghostscript-4.03-2.alpha.rpm

sparc:
ftp://updates.redhat.com/5.2/en/os/sparc/ghostscript-4.03-2.sparc.rpm

i386:
ftp://updates.redhat.com/5.2/en/os/i386/ghostscript-4.03-2.i386.rpm

sources:
ftp://updates.redhat.com/5.2/en/os/SRPMS/ghostscript-4.03-2.src.rpm

Red Hat Linux 6.2:

alpha:
ftp://updates.redhat.com/6.2/en/os/alpha/ghostscript-5.50-8_6.x.alpha.rpm
ftp://updates.redhat.com/6.2/en/os/alpha/ghostscript-5.50-8_6.x.alpha.rpm

sparc:
ftp://updates.redhat.com/6.2/en/os/sparc/ghostscript-5.50-8_6.x.sparc.rpm
ftp://updates.redhat.com/6.2/en/os/sparc/ghostscript-5.50-8_6.x.sparc.rpm

i386:
ftp://updates.redhat.com/6.2/en/os/i386/ghostscript-5.50-8_6.x.i386.rpm
ftp://updates.redhat.com/6.2/en/os/i386/ghostscript-5.50-8_6.x.i386.rpm

sources:
ftp://updates.redhat.com/6.2/en/os/SRPMS/ghostscript-5.50-8_6.x.src.rpm
ftp://updates.redhat.com/6.2/en/os/SRPMS/ghostscript-5.50-8_6.x.src.rpm

Red Hat Linux 7.0:

alpha:
ftp://updates.redhat.com/7.0/en/os/alpha/ghostscript-5.50-8.alpha.rpm

i386:
ftp://updates.redhat.com/7.0/en/os/i386/ghostscript-5.50-8.i386.rpm

sources:
ftp://updates.redhat.com/7.0/en/os/SRPMS/ghostscript-5.50-8.src.rpm

6. Solution:

For each RPM for your particular architecture, run:



rpm -Fvh [filename]



where filename is the name of the RPM.

7. Verification:

MD5 sum                           Package Name
-------------------------------------------------------------------------
d44d8436655d25ca53d0c4a87c5c7c77  5.2/en/os/SRPMS/ghostscript-4.03-2.src.rpm
1c8363a912a6f538312b3e457664d0eb  5.2/en/os/alpha/ghostscript-4.03-2.alpha.rpm
e11e7ec51f8e6051e50c5a93738f49ed  5.2/en/os/i386/ghostscript-4.03-2.i386.rpm
d3550b9fa695207b1405ce12a848eae2  5.2/en/os/sparc/ghostscript-4.03-2.sparc.rpm
e8c166031f02c9659f41a7e83ff4c97e  6.2/en/os/SRPMS/ghostscript-5.50-8_6.x.src.rpm
2e2944851c391f4ef50394d6b0c4a76a  6.2/en/os/alpha/ghostscript-5.50-8_6.x.alpha.rpm
9a4b61ddea7d18722198b772d6164619  6.2/en/os/i386/ghostscript-5.50-8_6.x.i386.rpm
fba7b417faaf19629642325ec6f34b84  6.2/en/os/sparc/ghostscript-5.50-8_6.x.sparc.rpm
6ad7beeb79d23f32ad320a659f5591d6  7.0/en/os/SRPMS/ghostscript-5.50-8.src.rpm
bd8b80bada77d59ee28aa72f6e5674e4  7.0/en/os/alpha/ghostscript-5.50-8.alpha.rpm
0d5f4448d5245721b1e2762f360791f2  7.0/en/os/i386/ghostscript-5.50-8.i386.rpm

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

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

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 filename

Note that you need RPM >= 3.0 to check GnuPG keys.

8. References:

N/A