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).
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.
Link | Tags |
---|---|
http://lua-users.org/lists/lua-l/2020-07/msg00324.html | mailing list exploit vendor advisory |
https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b | third party advisory patch |
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXYMCIUNGK26VHAYHGP5LPW56G2KWOHQ/ | third party advisory vendor advisory |
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6KONNG6UEI3FMEOY67NDZC32NBGBI44/ | third party advisory vendor advisory |
https://lists.debian.org/debian-lts-announce/2020/09/msg00019.html | third party advisory mailing list |
https://lists.debian.org/debian-lts-announce/2023/06/msg00031.html | third party advisory mailing list |