Bug 1860316 (CVE-2020-15889)

Summary: CVE-2020-15889 lua: heap-based buffer over-read in lgc.c
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: drjohnson1, michel, 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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-28 04:18:04 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: 1860317, 1910622    
Bug Blocks: 1860319    

Description Dhananjay Arunesh 2020-07-24 10:02:23 UTC
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.

References:
http://lua-users.org/lists/lua-l/2020-07/msg00078.html
https://github.com/lua/lua/commit/127e7a6c8942b362aa3c6627f44d660a4fb75312

Comment 1 Dhananjay Arunesh 2020-07-24 10:03:03 UTC
Created lua tracking bugs for this issue:

Affects: fedora-all [bug 1860317]

Comment 2 Huzaifa S. Sidhpurwala 2020-07-28 04:16:59 UTC
Statement:

The affected code was introduced via https://github.com/lua/lua/commit/f5f3df3bd17fb3489bbd26ab39fe1580a8dbf9c9 which is part of lua-5.4. Therefore versions of lua package shipped with Red Hat products is not affected by this flaw.