CVE Vulnerabilities

CVE-2020-24371

Release of Invalid Pointer or Reference

Published: Aug 17, 2020 | Modified: Jan 28, 2023
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.3 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Ubuntu
MEDIUM

lgc.c in Lua 5.4.0 mishandles the interaction between barriers and the sweep phase, leading to a memory access violation involving collectgarbage.

Weakness

The product attempts to return a memory resource to the system, but it calls the wrong release function or calls the appropriate release function incorrectly.

Affected Software

Name Vendor Start Version End Version
Lua Lua 5.4.0 (including) 5.4.0 (including)
Lua5.1 Ubuntu trusty *
Lua5.2 Ubuntu trusty *
Lua5.3 Ubuntu trusty *
Lua5.4 Ubuntu groovy *
Lua5.4 Ubuntu trusty *
Lua50 Ubuntu trusty *

Extended Description

This weakness can take several forms, such as:

Potential Mitigations

  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • For example, glibc in Linux provides protection against free of invalid pointers.

References