CVE-2021-44647
Memcached vulnerability analysis and mitigation

Overview

Lua v5.4.3 and above are affected by a SEGV (Segmentation Fault) vulnerability caused by type confusion in the funcnamefromcode function within ldebug.c, which can result in a local denial of service (CVE Details, Debian Tracker).

Technical details

The vulnerability occurs during error handling in the close metamethod of to-be-closed variables after calling os.exit. The main cause is that L->ci->previous->func value is located above L->top in the luaD_seterrorobj function. When os.exit function calls the close metamethod of tbc (to-be-closed), the upper callinfo frame calls the lower callinfo frame. The crash occurs when retrieving the name of the function that called the function in which the error occurred during the error handling process (Lua Users).

Impact

The vulnerability can cause a local denial of service through a segmentation fault in the Lua interpreter (CVE Details).

Mitigation and workarounds

The issue was fixed in Lua 5.4.4 by modifying the state closing process. The fix involves unwinding the CallInfo list before closing protected calls by adding 'L->ci = &L->baseci' in the closestate function (Lua Users).

Additional resources


SourceThis report was generated using AI

Related Memcached vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-46853CRITICAL9.8
  • MemcachedMemcached
  • memcached-debugsource
NoYesOct 27, 2023
CVE-2023-46852HIGH7.5
  • MemcachedMemcached
  • memcached
NoYesOct 27, 2023
CVE-2022-48571HIGH7.5
  • MemcachedMemcached
  • memcached
NoYesAug 22, 2023
CVE-2020-22570HIGH7.5
  • MemcachedMemcached
  • memcached
NoYesAug 22, 2023
CVE-2021-37519MEDIUM5.5
  • MemcachedMemcached
  • cpe:2.3:a:memcached:memcached
NoYesFeb 03, 2023

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management