NUT: Arbitrary code execution — GLSA 201209-19

A buffer overflow in NUT might allow remote attackers to execute arbitrary code.

Affected packages

sys-power/nut on all architectures
Affected versions < 2.6.3
Unaffected versions >= 2.6.3

Background

The Network UPS Tools (NUT) provide support for power devices.

Description

An error in the addchar() function in parseconf.c may cause a buffer overflow.

Impact

A remote attacker could send a specially crafted string to upsd, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All NUT users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=sys-power/nut-2.6.3"
 

References

Release date
September 27, 2012

Latest revision
September 27, 2012: 1

Severity
high

Exploitable
remote

Bugzilla entries