TORQUE: Insecure temporary file creation — GLSA 200611-14

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

Affected packages

sys-cluster/torque on all architectures
Affected versions < 2.1.6
Unaffected versions >= 2.1.6

Background

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

Description

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.

Impact

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.

Workaround

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

Resolution

All TORQUE users should upgrade to the latest version:

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

References

Release date
November 20, 2006

Latest revision
November 24, 2006: 03

Severity
high

Exploitable
local

Bugzilla entries