
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-130822 is a use-after-free (CWE-416) vulnerability in Valkey, an open-source in-memory data store, affecting versions before 7.2.16, 8.0.x before 8.0.13, 8.1.x before 8.1.12, 9.0.x before 9.0.8, 9.1.x before 9.1.4, and 9.2.0 release candidates. The flaw was discovered by nadav-levanoni during fuzz/soak testing and reported on November 16, 2026, with the security advisory published on November 19, 2026 and CVE assigned on November 24, 2026. It only affects servers where client eviction is explicitly enabled (maxmemory-clients is not 0); the default configuration is not vulnerable. The vulnerability carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory, Red Hat Bugzilla).
The root cause is a use-after-free (CWE-416) in the evictClients() function within Valkey's src/networking.c. When a client (X) executes a command that makes a key ready for blocked clients, processCommand() calls handleClientsBlockedOnKeys(), which re-executes each blocked client's command via processCommandAndResetClient(). During this re-execution, processCommand() invokes evictClients() with server.current_client pointing to the blocked client (Y), not the original client (X). If client memory exceeds maxmemory-clients at this point, evictClients() can select and immediately free client X — which is still on the call stack — because freeClient() only defers freeing for server.current_client (Y). After the blocked client's command completes, server.current_client is restored to the now-freed X, and subsequent calls to commandProcessed(), updateClientMemUsageAndBucket(), and beforeNextClient() operate on freed memory, resulting in a reliable server crash (assertion failure 'c->conn' is not true or SIGSEGV in resetClient()). The fix introduces a processing_command flag on the client struct; evictClients() skips any client with this flag set unless it is server.current_client (GitHub Issue, GitHub PR, GitHub Advisory).
Successful exploitation allows an authenticated attacker with write access to any key to reliably crash the Valkey server process, resulting in a complete denial of service. The CVSS score also reflects potential high confidentiality and integrity impact, consistent with the memory corruption nature of use-after-free bugs, which can theoretically be leveraged for arbitrary code execution in some scenarios. The attacker does not need to control or own the blocked clients — any clients blocked on the target key (e.g., via BLPOP, BLMPOP, BZPOPMIN, or XREAD BLOCK) can serve as unwitting participants in triggering the crash (GitHub Advisory, Red Hat Bugzilla).
There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation as of the time of publication (Feedly). The NVD SSVC assessment classifies exploitation as "none" and the attack as non-automatable, reflecting the specific preconditions required: client eviction must be enabled, at least two clients must be blocked on the same key, and the executing client must be the largest eviction candidate. The EPSS score is approximately 0.76%, indicating a low probability of exploitation in the near term. No threat actor attribution or CISA KEV catalog listing has been identified (GitHub Advisory).
maxmemory-clients set to a non-zero value (client eviction enabled). Servers with the default maxmemory-clients 0 are not vulnerable.BLMPOP 0 1 mylist LEFT COUNT 20000) on a target key (e.g., mylist) so those clients block waiting for data.GET on a large key) without reading the replies, causing X's unread output buffer to grow until it becomes the largest client by memory usage.maxmemory-clients to a value just above the current total client memory, so the limit will be exceeded once the first blocked client's reply is added.RENAME src mylist or LPUSH mylist value). This makes the key ready, causing handleClientsBlockedOnKeys() to serve the blocked clients. As the first blocked client's large reply is added to total memory, the limit is exceeded. When the second blocked client's command re-executes and calls evictClients(), client X (the largest) is freed while still executing, triggering the use-after-free.'c->conn' is not true) or SIGSEGV, achieving denial of service (GitHub Issue, GitHub Advisory).Evicting client: immediately followed by a crash log starting with === VALKEY BUG REPORT START ===; assertion failure messages such as server.c: 'c->conn' is not true in clientEvictionAllowed() or updateClientMemUsageAndBucket().valkey-server process with signal 11 (SIGSEGV) or an assertion failure; crash stack traces referencing evictClients, processCommandAndResetClient, handleClientsBlockedOnKeys, beforeNextClient, or resetClient.BLMPOP, BLPOP, BZPOPMIN, XREAD BLOCK) on the same key, combined with a separate connection accumulating large unread output buffers and then writing to that key.maxmemory-clients set to a non-zero value in the server configuration, which is a prerequisite for the vulnerable code path to be reachable (GitHub Issue, GitHub Advisory).Upgrade Valkey to one of the patched versions: 7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4, or 9.2.0 (stable release). As an immediate temporary workaround, set maxmemory-clients 0 in the Valkey configuration to disable client eviction entirely — this prevents the vulnerable code path from being triggered. If client eviction is required and patching is delayed, use Valkey ACLs to restrict untrusted users from writing to keys that other clients block on, and prevent those users from issuing blocking commands (BLPOP, BRPOP, BLMOVE, BRPOPLPUSH, BLMPOP, BZPOPMIN, BZPOPMAX, BZMPOP, XREAD/XREADGROUP with BLOCK). Ensure client-output-buffer-limit and maxmemory are configured to bound client memory if client eviction is disabled (GitHub Advisory, Red Hat Bugzilla).
The vulnerability was discovered internally by Valkey contributor nadav-levanoni during fuzz/soak testing for the valkey-large-object module, and the fix was reviewed and merged by the Valkey maintainer team within one day of the report (GitHub Issue, GitHub PR). Red Hat tracked the issue as high severity in their Bugzilla system, and the vulnerability was picked up by Linux security roundup publications and vulnerability tracking platforms including VulDB, OSV, and Cloudflare Radar (Red Hat Bugzilla). Google Cloud's Memorystore for Redis maintenance changelog also referenced the issue, indicating downstream managed service awareness.
Fix availability across major Linux distributions and their releases.
RHEL 8
redis:6/redis.src
RHEL 9
redis.src
RHEL 10
valkey.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."