Name | CVE-2019-6706 |
Description | Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. For example, a crash outcome might be achieved by an attacker who is able to trigger a debug.upvaluejoin call in which the arguments have certain relationships. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3469-1, ELA-879-1 |
Debian Bugs | 920321 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
lua5.1 (PTS) | jessie | 5.1.5-7.1 | fixed |
| buster, bullseye, stretch | 5.1.5-8.1 | fixed |
| sid, trixie, bookworm | 5.1.5-9 | fixed |
lua5.2 (PTS) | jessie | 5.2.3-1.1 | fixed |
| buster, bullseye, stretch | 5.2.4-1.1 | fixed |
| sid, trixie, bookworm | 5.2.4-3 | fixed |
lua5.3 (PTS) | stretch (security) | 5.3.3-1+deb9u1 | vulnerable |
| stretch (lts), stretch | 5.3.3-1+deb9u2 | fixed |
| buster (security), buster, buster (lts) | 5.3.3-1.1+deb10u1 | fixed |
| bullseye | 5.3.3-1.1+deb11u1 | fixed |
| sid, trixie, bookworm | 5.3.6-2 | fixed |
lua50 (PTS) | jessie | 5.0.3-7 | fixed |
| buster, stretch | 5.0.3-8 | fixed |
| bullseye | 5.0.3-8.1 | fixed |
The information below is based on the following data on fixed versions.
Notes
- lua5.2 <not-affected> (Vulnerable code introduced later)
- lua5.1 <not-affected> (Vulnerable code introduced later)
- lua50 <not-affected> (Vulnerable code introduced later)
http://lua-users.org/lists/lua-l/2019-01/msg00039.html
lua50 and lua5.1 don't have the affected code.
lua5.2 is not vulnerable as it doesn't free the value before using it.
https://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71e (v5.3.6)