Lua: Buffer overflow — GLSA 201701-53

A buffer overflow in Lua might allow context-dependent attackers to execute arbitrary code.

Affected packages

dev-lang/lua on all architectures
Affected versions < 5.1.5-r4
Unaffected versions >= 5.1.5-r4

Background

Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.

Description

A buffer overflow was discovered in the vararg functions in ldo.c in Lua.

Impact

Context-dependent could cause a Denial of Service condition or execute arbitrary code.

Workaround

There is no known workaround at this time.

Resolution

All Lua users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-lang/lua-5.1.5-r4"
 

References

Release date
January 23, 2017

Latest revision
January 23, 2017: 1

Severity
normal

Exploitable
local, remote

Bugzilla entries