ossec / ossec-hids

OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.
http://www.ossec.net
Other
4.33k stars 1.02k forks source link

Backport CVE-2020-24370's patch #2112

Open the-Chain-Warden-thresh opened 5 months ago

the-Chain-Warden-thresh commented 5 months ago

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 ossec-hids. Try to backport the fix to the lua in ossec-hids since the original fix is for 5.4 and several functions have been changed.