CVE Vulnerabilities

CVE-2020-24370

Integer Underflow (Wrap or Wraparound)

Published: Aug 17, 2020 | Modified: Sep 09, 2024
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
5.3 LOW
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).

Weakness

The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.

Affected Software

Name Vendor Start Version End Version
Lua Lua 5.2.0 (including) 5.2.0 (including)
Lua Lua 5.2.0-alpha (including) 5.2.0-alpha (including)
Lua Lua 5.2.0-beta (including) 5.2.0-beta (including)
Lua Lua 5.2.1 (including) 5.2.1 (including)
Lua Lua 5.2.2 (including) 5.2.2 (including)
Lua Lua 5.2.3 (including) 5.2.3 (including)
Lua Lua 5.3.0 (including) 5.3.0 (including)
Lua Lua 5.3.0-alpha (including) 5.3.0-alpha (including)
Lua Lua 5.3.0-beta (including) 5.3.0-beta (including)
Lua Lua 5.3.1 (including) 5.3.1 (including)
Lua Lua 5.3.2 (including) 5.3.2 (including)
Lua Lua 5.3.3 (including) 5.3.3 (including)
Lua Lua 5.3.4 (including) 5.3.4 (including)
Lua Lua 5.3.5 (including) 5.3.5 (including)
Lua Lua 5.4.0 (including) 5.4.0 (including)
Lua Lua 5.4.0-alpha (including) 5.4.0-alpha (including)
Lua Lua 5.4.0-beta (including) 5.4.0-beta (including)
Red Hat Enterprise Linux 8 RedHat lua-0:5.3.4-12.el8 *
Red Hat Enterprise Linux 8 RedHat lua-0:5.3.4-12.el8 *
Lua5.1 Ubuntu trusty *
Lua5.2 Ubuntu trusty *
Lua5.3 Ubuntu trusty *
Lua5.4 Ubuntu groovy *
Lua5.4 Ubuntu trusty *
Lua50 Ubuntu trusty *

References