Protect yourself against future threats.
-----BEGIN PGP SIGNED MESSAGE----- =========================================================================== AUSCERT External Security Bulletin Redistribution ESB-2000.366 -- RHSA-2000:114-03 ghostscript uses mktemp instead of mkstemp, and uses an improper LD_RUN_PATH 23 November 2000 =========================================================================== AusCERT Security Bulletin Summary --------------------------------- Product: ghostscript Vendor: Red Hat Operating System: Red Hat Linux Linux Unix Impact: Modify Arbitrary Files Denial of Service Reduced Security - --------------------------BEGIN INCLUDED TEXT-------------------- - --------------------------------------------------------------------- Red Hat, Inc. Security Advisory Synopsis: ghostscript uses mktemp instead of mkstemp, and uses an improper LD_RUN_PATH Advisory ID: RHSA-2000:114-03 Issue date: 2000-11-22 Updated on: 2000-11-22 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. 2. 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 3. 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. 4. Solution: For each RPM for your particular architecture, run: rpm -Fvh [filename] where filename is the name of the RPM. 5. Bug IDs fixed (http://bugzilla.redhat.com/bugzilla for more info): 20924 - gs reads libraries from current directory 6. RPMs required: Red Hat Linux 5.2: alpha: ftp://updates.redhat.com/5.2/alpha/ghostscript-4.03-2.alpha.rpm sparc: ftp://updates.redhat.com/5.2/sparc/ghostscript-4.03-2.sparc.rpm i386: ftp://updates.redhat.com/5.2/i386/ghostscript-4.03-2.i386.rpm sources: ftp://updates.redhat.com/5.2/SRPMS/ghostscript-4.03-2.src.rpm Red Hat Linux 6.2: alpha: ftp://updates.redhat.com/6.2/alpha/ghostscript-5.50-8_6.x.alpha.rpm ftp://updates.redhat.com/6.2/alpha/ghostscript-5.50-8_6.x.alpha.rpm sparc: ftp://updates.redhat.com/6.2/sparc/ghostscript-5.50-8_6.x.sparc.rpm ftp://updates.redhat.com/6.2/sparc/ghostscript-5.50-8_6.x.sparc.rpm i386: ftp://updates.redhat.com/6.2/i386/ghostscript-5.50-8_6.x.i386.rpm ftp://updates.redhat.com/6.2/i386/ghostscript-5.50-8_6.x.i386.rpm sources: ftp://updates.redhat.com/6.2/SRPMS/ghostscript-5.50-8_6.x.src.rpm ftp://updates.redhat.com/6.2/SRPMS/ghostscript-5.50-8_6.x.src.rpm Red Hat Linux 7.0: i386: ftp://updates.redhat.com/7.0/i386/ghostscript-5.50-8.i386.rpm sources: ftp://updates.redhat.com/7.0/SRPMS/ghostscript-5.50-8.src.rpm 7. Verification: MD5 sum Package Name - -------------------------------------------------------------------------- d44d8436655d25ca53d0c4a87c5c7c77 5.2/SRPMS/ghostscript-4.03-2.src.rpm 1c8363a912a6f538312b3e457664d0eb 5.2/alpha/ghostscript-4.03-2.alpha.rpm e11e7ec51f8e6051e50c5a93738f49ed 5.2/i386/ghostscript-4.03-2.i386.rpm d3550b9fa695207b1405ce12a848eae2 5.2/sparc/ghostscript-4.03-2.sparc.rpm e8c166031f02c9659f41a7e83ff4c97e 6.2/SRPMS/ghostscript-5.50-8_6.x.src.rpm 2e2944851c391f4ef50394d6b0c4a76a 6.2/alpha/ghostscript-5.50-8_6.x.alpha.rpm 9a4b61ddea7d18722198b772d6164619 6.2/i386/ghostscript-5.50-8_6.x.i386.rpm fba7b417faaf19629642325ec6f34b84 6.2/sparc/ghostscript-5.50-8_6.x.sparc.rpm 6ad7beeb79d23f32ad320a659f5591d6 7.0/SRPMS/ghostscript-5.50-8.src.rpm 0d5f4448d5245721b1e2762f360791f2 7.0/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/corp/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> 8. References: N/A Copyright(c) 2000 Red Hat, Inc. - --------------------------END INCLUDED TEXT-------------------- This security bulletin is provided as a service to AusCERT's members. As AusCERT did not write the document quoted above, AusCERT has had no control over its content. The decision to use any or all of this information is the responsibility of each user or organisation, and should be done so in accordance with site policies and procedures. NOTE: This is only the original release of the security bulletin. It may not be updated when updates to the original are made. If downloading at a later date, it is recommended that the bulletin is retrieved directly from the original authors to ensure that the information is still current. Contact information for the authors of the original document is included in the Security Bulletin above. If you have any questions or need further information, please contact them directly. Previous advisories and external security bulletins can be retrieved from: http://www.auscert.org.au/Information/advisories.html If you believe that your system has been compromised, contact AusCERT or your representative in FIRST (Forum of Incident Response and Security Teams). Internet Email: auscert@auscert.org.au Facsimile: (07) 3365 7031 Telephone: (07) 3365 4417 (International: +61 7 3365 4417) AusCERT personnel answer during Queensland business hours which are GMT+10:00 (AEST). On call after hours for emergencies. -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv Comment: ftp://ftp.auscert.org.au/pub/auscert/AUSCERT_PGP.key iQCVAwUBOlSNWSh9+71yA2DNAQElMgP/Qj/FMb12ZpWjNBz7PJqge9+5Ld24tnra WukOVxqaTRXZ30hamIEb6Mfw0ZLOQGML49mBXATRcO9icnOmaf1/FKAMS8Fa8/8n 5mYbzH88yLWacKrZcbw0o9036tf+2IxZDg+PbmikJaFwmrSXl921JhleUmpxOFxc avzwZyKsK+U= =0kDV -----END PGP SIGNATURE-----