Bug 20924 - gs reads libraries from current directory
Summary: gs reads libraries from current directory
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ghostscript (Show other bugs)
(Show other bugs)
Version: 6.2
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Crutcher Dunnavant
QA Contact: Aaron Brown
URL:
Whiteboard:
Keywords: Security
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-11-15 20:13 UTC by Jarno Huuskonen
Modified: 2007-04-18 16:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-11-16 10:15:33 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Jarno Huuskonen 2000-11-15 20:13:44 UTC
Hi,

I just noticed on bugtraq (suse announcement) that gs reads libs from
the current directory. To the best of my knowledge RH is also vulnerable.
See the two following strace /usr/bin/gs listings:

No libs in tmp:
open("i686/mmx/libz.so.1", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("i686/libz.so.1", O_RDONLY)        = -1 ENOENT (No such file or
directory)
open("mmx/libz.so.1", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("libz.so.1", O_RDONLY)             = -1 ENOENT (No such file or
directory)
----

And with libz* copied to /tmp/i686
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("i686/mmx/libz.so.1", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("i686/libz.so.1", O_RDONLY)        = 3


-Jarno


Note You need to log in before you can comment on or make changes to this bug.