Valkey can be told to evict clients when their combined memory passes a limit (maxmemory-clients), and the eviction runs at points where the server is between commands, except for one path where it is not. When a client writes to a key that other clients are blocked on (BLPOP, BLMPOP, BZPOPMIN, XREAD BLOCK and their relatives), the blocked clients are served inside the writer’s command, and “evictClients() can select and free the client whose command made the key ready, although that command is still executing, and the server then keeps using the freed client”. The writer need not own the blocked clients, and the result “is a reliable crash of the server process”. Upgrade to Valkey 7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4 or 9.2.0 and restart; servers with the default maxmemory-clients 0 are not affected, and setting it to 0 is the workaround for those that are.
CVE-2026-130822 at a glance.
| Component | Valkey, client eviction meeting blocked-client wakeup: processCommand() in src/server.c, unblockClientOnKey() in src/blocked.c and freeClient() in src/networking.c per the advisory; the fix touches src/networking.c, src/server.c and src/server.h. Every build has this code; it is reachable only when maxmemory-clients is not 0 |
| Affected versions | Valkey below 7.2.16, 8.0.0 to 8.0.12, 8.1.0 to 8.1.11, 9.0.0 to 9.0.7, 9.1.0 to 9.1.3 and the 9.2.0 release candidates |
| Fixed in | Valkey 7.2.16, 8.0.13, 8.1.12, 9.0.8, 9.1.4 and 9.2.0 (pull request #5435, merged 17 November 2026: a processing_command flag on the client, which evictClients() skips unless it is the current client, plus a regression test in tests/unit/client-eviction.tcl); Red Hat’s six errata of 24 November cover the same six versions |
| Severity | Valkey (Akrites CNA) CVSS 3.1 7.5 High (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H), the same on GHSA-3885-pq5f-788j; NVD Awaiting Analysis with that vector. CWE-416 (use after free). Red Hat Important, 7.5, with the note that default configurations are not exposed; SUSE important, 7.5, Pending |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.27). EPSS 0.0077 (52nd percentile) on 30 November 2026 |
| Who is exposed | Valkey servers with maxmemory-clients set to anything but 0, where an authenticated user can write to a key that other clients block on. The blocked clients can belong to anyone: a queue consumer waiting in BLPOP is the usual case, and the attacker is whoever may push to that queue. The default configuration is not affected, and a server whose only clients are the application’s own, under a role that cannot write to blocking keys, is a patching chore rather than an exposure |
| Published | CVE record 24 November 2026 (Akrites CNA); GitHub advisory GHSA-3885-pq5f-788j 19 November 2026 (credit nadav-levanoni, who reported issue #5422 on 16 November); this page built 1 December 2026, last updated 1 December 2026 |
What it is
Client eviction is Valkey’s answer to clients that hoard memory: with maxmemory-clients set, the server frees the biggest offenders when the total passes the limit. It is meant to run when no command is in flight. Blocking commands complicate that, because a client blocked on a key is woken up inside the command that made the key ready: a RPUSH to a list serves every BLPOP waiting on it, there and then, as part of the push. The record describes what goes wrong in that window: “while the clients blocked on that key are served, evictClients() can select and free the client whose command made the key ready, although that command is still executing, and the server then keeps using the freed client”. The issue that reported it reproduces the crash on stock builds with BLMPOP, RENAME, GET and a maxmemory-clients setting, and no module.
Two details make this an exposure rather than a curiosity. The attacker only needs to be the writer, and “the blocked clients do not have to belong to the attacker”, so an application’s own queue consumers supply the blocked side. And the condition is a configuration many memory-conscious deployments set on purpose, since maxmemory-clients is the recommended protection against client output buffers running away. The fix in pull request #5435 adds a processing_command flag to the client structure and makes evictClients() skip a flagged client unless it is the server’s current client, with a regression test; the issue was opened on 16 November, the fix merged on 17 November, the advisory published on 19 November, and the six fixed releases, from 7.2.16 to 9.2.0, are what Red Hat’s errata of 24 November ship.
The same day’s sibling CVE-2026-136157 is the RDMA version of this shape, a client freed under a loop that still holds it, and is far rarer in the field because it needs an RDMA build. This one needs a configuration line.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Red Hat’s RHEL 8 and 9 redis streams are listed as affected too, since the eviction code predates the fork.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker refused our reader on 1 December 2026 | — |
| Debian | Vulnerable in trixie (8.1.1+dfsg1-3+deb13u3); fixed in forky and sid; no DSA for this CVE; bookworm has no valkey package | forky and sid valkey 9.1.4-1 |
| Ubuntu | medium; valkey is needs-triage on 24.04, 26.04 and 26.10; 22.04 has no package | nothing on 1 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.5, CWE-416 (bug 2583380); Affected on RHEL 10 valkey, RHEL 9 valkey and redis (including the redis:7 stream), RHEL 8 redis:6 and the Hardened Images; six errata of 24 November 2026 for Red Hat’s Valkey streams: RHSA-2026:103184 (7.2.16), 103174 (8.0.13), 103200 (8.1.12), 103175 (9.0.8), 103160 (9.1.4), 103193 (9.2.0) | the stream builds in those errata; the RHEL base valkey and redis packages were still listed Affected on 1 December 2026 |
| openSUSE/SLE | important, 7.5, Pending (bug 1291683); Affected on every product listed, SLE 15 SP6/SP7 and 16.x, Leap 15.6, 16.0 and 16.1 and the suse/valkey container; released for Tumbleweed | Tumbleweed valkey 9.2.0-1.1 (openSUSE-Tumbleweed-2026-12724); nothing for SLE on 1 December 2026 |
Fedora, Arch; source builds and the official valkey/valkey images | Not consulted; upstream fixed versions apply | Valkey 7.2.16 / 8.0.13 / 8.1.12 / 9.0.8 / 9.1.4 / 9.2.0 or later |
How to check
Three questions, in order: which Valkey is running, is client eviction on, and who may write to keys that other clients block on. The second is one line and clears the default configuration.
# 1. the running version (the server, not the package)
valkey-cli INFO server | grep -E '^(valkey_version|redis_version|executable)'
# 2. is client eviction enabled? 0 means this bug cannot be reached
valkey-cli CONFIG GET maxmemory-clients
grep -nE '^\s*maxmemory-clients' /etc/valkey/valkey.conf /etc/valkey.conf 2>/dev/null
# 3. are there blocked clients, and who may write to the keys they wait on
valkey-cli INFO clients | grep -E '^(connected_clients|blocked_clients)'
valkey-cli CLIENT LIST | grep -E 'cmd=(blpop|brpop|blmove|brpoplpush|blmpop|bzpopmin|bzpopmax|bzmpop|xread|xreadgroup)'
valkey-cli ACL LIST | grep -E '\+@all|\+@write|\+@list|\+@stream|\+@sortedset'A server at or above the fixed version for its series is done. A server where step 2 prints 0 is not on this path, whatever its version, and that is the default. A server with eviction on, blocked clients in step 3, and a user other than the application’s own role who may write to lists, streams or sorted sets is the vulnerable configuration; with an application-only user set the bug is still there, but the attacker has to be the application.
How to fix it
Upgrade to the fixed release for your series and restart the server; the eviction code is part of the server binary, so there is no reload that replaces it. On 1 December 2026 Debian forky and sid, openSUSE Tumbleweed and Red Hat’s Valkey streams carry fixed builds; Debian trixie, Ubuntu, SLE and the RHEL base packages were pending.
# Debian forky/sid (trixie: nothing yet); Ubuntu: nothing yet
apt update && apt install --only-upgrade valkey-server
# RHEL family: the Valkey stream errata of 24 November (base packages pending)
dnf upgrade valkey
# openSUSE Tumbleweed (SLE: pending)
zypper patch
# official images
docker pull valkey/valkey:9.1.4 && docker compose up -d --force-recreate
systemctl restart valkey-server 2>/dev/null || systemctl restart valkey
valkey-cli INFO server | grep -E '^valkey_version' # must be at or above 7.2.16 / 8.0.13 / 8.1.12 / 9.0.8 / 9.1.4 / 9.2.0Until the upgrade, the advisory’s first workaround is the one to use: “Set maxmemory-clients to 0, which disables client eviction; if you do, make sure client-output-buffer-limit and maxmemory still bound client memory.” The second, for servers that need eviction, is ACLs “so that untrusted users cannot write to keys that other clients block on, and cannot run the blocking commands”. What not to do: do not turn eviction off without checking client-output-buffer-limit, because eviction was probably there to stop a runaway subscriber from taking the server down, which is the outage you would be trading for this one; and do not remove the blocking commands from the application’s own user as a defence, since the blocked clients are the victims here, not the attackers.
# mitigation A: no client eviction until the upgrade, with the buffer limits that replace it
valkey-cli CONFIG GET client-output-buffer-limit; valkey-cli CONFIG GET maxmemory
valkey-cli CONFIG SET maxmemory-clients 0 && valkey-cli CONFIG REWRITE
# mitigation B (servers that need eviction): untrusted users may neither write blocking keys nor block
valkey-cli ACL SETUSER untrusted -@write -blpop -brpop -blmove -brpoplpush -blmpop -bzpopmin -bzpopmax -bzmpop -xread -xreadgroup
valkey-cli ACL SAVE 2>/dev/null || echo "ACL SAVE needs aclfile set; copy the rules into valkey.conf instead"Sources
- CVE-2026-130822 at CVE.org — the Akrites (Valkey) CNA record (24 November 2026): the description, CVSS 3.1 7.5, CWE-416, the six affected ranges, the workaround and the credit
- GHSA-3885-pq5f-788j — the project’s advisory of 19 November 2026 (patched 9.2.0, 9.1.4, 9.0.8, 8.1.12, 8.0.13, 7.2.16; the three functions involved); issue #5422 (16 November, the reproducer and stack trace) and pull request #5435 (merged 17 November 2026:
src/networking.c,src/server.c,src/server.h,tests/unit/client-eviction.tcl) - NVD entry — Awaiting Analysis; the CNA’s vector and the six affected ranges; no CPEs
- Distribution trackers: Debian (trixie vulnerable, forky/sid fixed) · Ubuntu (medium, needs-triage) · Red Hat (Important, the six stream errata, RHEL packages Affected) · SUSE (important, Tumbleweed released) · Alpine (refused on 1 December)
- CISA KEV catalogue 2026.11.27, not listed · EPSS score for this CVE, 30 November 2026
Related reading
- CVE-2026-136157: Valkey RDMA transport uses a freed connection while processing pending data (
cve-2026-136157-valkey-rdma-pending-data-use-after-free, forthcoming) — the same day’s sibling: the same shape, in the RDMA transport - CVE-2026-136155: Valkey 9.1 script debugger uses a freed Lua interpreter after SCRIPT FLUSH ASYNC — the other November use-after-free in the core server
- CVE-2026-136158: Valkey JSON array commands write through freed memory on a recursive JSONPath — the module-side flaw from the same set, with the same ACL answer
- Hardening a Public-Facing Service Beyond the Basics — per-command ACLs and output-buffer limits, the two controls this page leans on
- The Half of Patching That Happens After the Patch is Installed — a new binary does nothing until the server restarts
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
