Bug 24316

Summary: CVE-2010-3357: insecure library loading
Product: Sisyphus Reporter: Vladimir Lettiev <crux>
Component: gnome-subtitlesAssignee: ildar <ildar>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: blocker    
Priority: P3 Keywords: security
Version: unstable   
Hardware: all   
OS: Linux   
URL: http://bugs.debian.org/598289

Description Vladimir Lettiev 2010-10-15 15:41:35 MSD
The vulnerability is introduced by an insecure change to
LD_LIBRARY_PATH, and environment variable used by ld.so(8) to look for
libraries on a directory other than the standard paths.

Vulnerable code follows:

/usr/bin/gnome-subtitles line 9:
export LD_LIBRARY_PATH="$libdir/gnome-subtitles:$LD_LIBRARY_PATH"

When there's an empty item on the colon-separated list of
LD_LIBRARY_PATH, ld.so treats it as '.' (i.e. CWD/$PWD.)
If the given script is executed from a directory where a potential,
local, attacker can write files to, there's a chance to exploit this
bug.


Fixed in git:  http://git.gnome.org/browse/gnome-subtitles/commit/?id=44370dc2a87f7fa0d6c9730979514bd407a37c65
Comment 1 Repository Robot 2010-10-23 08:42:29 MSD
gnome-subtitles-1.0-alt1.git.75.gcf1c9d0 -> sisyphus:

* Fri Oct 15 2010 Ildar Mulyukov <ildar@altlinux> 1.0-alt1.git.75.gcf1c9d0
- new version
- fix CVE-2010-3357 (closes: #24316)