Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717780 (CVE-2019-6706, CVE-2020-15888, CVE-2020-15889, CVE-2020-15945) - dev-lang/lua: Multiple vulnerabilities (CVE-2019-6706, CVE-2020-{15945,15888,15889})
Summary: dev-lang/lua: Multiple vulnerabilities (CVE-2019-6706, CVE-2020-{15945,15888,...
Alias: CVE-2019-6706, CVE-2020-15888, CVE-2020-15889, CVE-2020-15945
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B3 [upstream/ebuild cve]
Depends on:
Reported: 2020-04-17 01:37 UTC by GLSAMaker/CVETool Bot
Modified: 2020-07-25 02:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description GLSAMaker/CVETool Bot gentoo-dev 2020-04-17 01:37:17 UTC
CVE-2019-6706 (
  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.

Ubuntu have applied this patch: (viewable in browser)
Comment 1 Sam James gentoo-dev Security 2020-06-13 17:01:48 UTC
Comment 2 John Helmert III (ajak) 2020-07-22 00:53:19 UTC

Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based buffer overflow, heap-based buffer over-read, or use-after-free.


Lua through 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an insufficient number of list members.
Comment 3 Sam James gentoo-dev Security 2020-07-25 02:44:06 UTC
* CVE-2020-15945

"Lua through 5.4.0 has a segmentation fault in changedline in ldebug.c (e.g., when called by luaG_traceexec) because it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function."