Bug 1861999 (CVE-2020-15945) - CVE-2020-15945 lua: segmentation fault in changedline in ldebug.c
Summary: CVE-2020-15945 lua: segmentation fault in changedline in ldebug.c
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2020-15945
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1862062 1866423 1862000 1862061 1862370 1862371 1862373 1866421 1910620
Blocks: 1862001
TreeView+ depends on / blocked
 
Reported: 2020-07-30 06:34 UTC by Dhananjay Arunesh
Modified: 2022-04-17 20:59 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in lua. A segmentation fault is possible because it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function.
Clone Of:
Environment:
Last Closed: 2021-10-28 10:15:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Dhananjay Arunesh 2020-07-30 06:34:35 UTC
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.

References:
http://lua-users.org/lists/lua-l/2020-07/msg00123.html
https://github.com/lua/lua/commit/a2195644d89812e5b157ce7bac35543e06db05e3

Comment 1 Dhananjay Arunesh 2020-07-30 06:35:24 UTC
Created lua tracking bugs for this issue:

Affects: fedora-all [bug 1862000]

Comment 3 Riccardo Schirone 2020-07-31 09:17:25 UTC
Created compat-lua tracking bugs for this issue:

Affects: epel-all [bug 1862370]
Affects: fedora-all [bug 1862371]

Comment 6 Hardik Vyas 2020-08-05 14:17:08 UTC
Statement:

Red Hat Ceph Storage 3 and 4 ships vulnerable version of Lua(embedded in Ceph), however Lua is no longer supported in Ceph.


Note You need to log in before you can comment on or make changes to this bug.