Gentoo Logo

Valgrind: Untrusted search path


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200902-03 / valgrind
Release Date February 12, 2009
Latest Revision February 12, 2009: 01
Impact high
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
dev-util/valgrind < 3.4.0 >= 3.4.0 All supported architectures

Related bugreports: #245317


An untrusted search path vulnerability in Valgrind might result in the execution of arbitrary code.

2.  Impact Information


Valgrind is an open-source memory debugger.


Tavis Ormandy reported that Valgrind loads a .valgrindrc file in the current working directory, executing commands specified there.


A local attacker could prepare a specially crafted .valgrindrc file and entice a user to run Valgrind from the directory containing that file, resulting in the execution of arbitrary code with the privileges of the user running Valgrind.

3.  Resolution Information


Do not run "valgrind" from untrusted working directories.


All Valgrind users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-util/valgrind-3.4.0"

4.  References


Page updated February 12, 2009

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.