Bug 1861999 (CVE-2020-15945)

Summary: CVE-2020-15945 lua: segmentation fault in changedline in ldebug.c
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cmoore, drjohnson1, fedora, hdegoede, hvyas, kaycoth, kwalsh, michel, moceap, packaging-team-maint, rob.myers, spotrh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-28 10:15:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1862062, 1866423, 1862000, 1862061, 1862370, 1862371, 1862373, 1866421, 1910620    
Bug Blocks: 1862001    

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.