DHI-5vc4-422t-xsfy-7efw
## Impact
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-26
- Age
- 2d old
- Modified
- 2026-11-26
- Product
- valkey-7.2
Description
## Impact An attacker who can run scripting commands can free the Lua interpreter state out from under the script debugger's cached command table, leaving a dangling pointer that is dereferenced on the next debugger command. This yields a reliable crash of the server process, and can be escalated to control of an indirect call by reclaiming the freed heap chunk with attacker-controlled bytes. This issue affects the 9.x line. The defect was introduced when the Lua scripting engine was moved into a Valkey module. The 8.0.x and 8.1.x lines use the previous non-module debugger and are not affected. ## Details `ldbGenerateDebuggerCommandsArray` in `src/modules/lua/debug_lua.c` builds the interactive debugger command table once and caches it in a file-scope static, binding the then-current `lua_State` pointer into each command descriptor's context field. The table is never rebuilt or invalidated. `SCRIPT FLUSH ASYNC` recreates the scripting engine, creating the replacement interpreter state before freeing the previous one on the lazyfree thread. Nothing clears the cached command table, so its context is left pointing at a freed chunk. Any subsequent debugger command dereferences it. Beca
Sources
- OSV · first seen 2d ago · CC-BY 4.0
References
- https://scout.docker.com/v/DHI-5vc4-422t-xsfy-7efw advisory
- https://github.com/valkey-io/valkey/security/advisories/GHSA-fq2f-crmw-q97r advisory
- https://security-tracker.debian.org/tracker/CVE-2026-136155 advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-136155 advisory
- https://access.redhat.com/security/cve/CVE-2026-136155 advisory
- https://www.cve.org/CVERecord?id=CVE-2026-136155 fix
- https://github.com/valkey-io/valkey/pull/4574 fix
- https://ubuntu.com/security/CVE-2026-136155 advisory
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-136155 advisory