Gentoo Logo

TORQUE: Insecure temporary file creation


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200611-14 / torque
Release Date November 20, 2006
Latest Revision November 24, 2006: 03
Impact high
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
sys-cluster/torque < 2.1.6 >= 2.1.6 All supported architectures

Related bugreports: #152104


TORQUE creates temporary files in an insecure manner which could lead to the execution of arbitrary code with elevated privileges.

2.  Impact Information


TORQUE is a resource manager providing control over batch jobs and distributed compute nodes.


TORQUE creates temporary files with predictable names. Please note that the TORQUE package shipped in Gentoo Portage is not vulnerable in the default configuration. Only systems with more permissive access rights to the spool directory are vulnerable.


A local attacker could create links in the temporary file directory, pointing to a valid file somewhere on the filesystem. This could lead to the execution of arbitrary code with elevated privileges.

3.  Resolution Information


Ensure that untrusted users don't have write access to the spool directory.


All TORQUE users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-cluster/torque-2.1.6"

4.  References


Page updated November 20, 2006

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.