Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport CVE-2020-24370's patch #16190

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

the-Chain-Warden-thresh
Copy link
Contributor

@the-Chain-Warden-thresh the-Chain-Warden-thresh commented Feb 2, 2024

CVE-2020-24370 is a security vulnerability in lua. Although the CVE decription in CVE-2020-24370 said that this CVE only affected lua 5.4.0, according to lua this CVE actually existed since lua 5.2. The root cause of this CVE is the negation overflow that occurs when you try to take the negative of 0x80000000. Thus, this CVE also exists in RetroArch.
Try to backport the fix to the lua in RetroArch since the original fix is for 5.4 and several functions have been changed.

@LibretroAdmin LibretroAdmin merged commit 380daf1 into libretro:master Feb 2, 2024
26 checks passed
@goodusername123
Copy link
Contributor

goodusername123 commented Mar 17, 2024

I'm sorry to say but this backporting effort was partially unnecessary since Lua 5.3.6 has a fix for this bug/problem/CVE (RetroArch is currently on Lua 5.3.5 which is just one minor version behind), I did just check and the fix in 5.3.6 is identical to this pull request.
Honestly it really sucks how proper changelogs for PUC Lua are pretty much nonexistent from the looks of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants