AZL-116092: CVE-2026-130822 affecting package valkey 8.0.12-1
In Valkey 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, when client eviction is enabled (maxmemory-clients is not 0), an authenticated user who can write to a key that other clients are blocked on (for example with BLPOP, BLMPOP, BZPOPMIN or XREAD BLOCK) can trigger a use-after-free. 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 blocked clients do not have to belong to the attacker. The result is a reliable crash of the server process. Servers with the default maxmemory-clients 0 are not affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
valkeyto a version that resolves this vulnerability.Fixed in 8.0.13 - Configuration
Set maxmemory-clients to 0 to disable client eviction; servers with this setting are not affected.
Valkey maxmemory-clients = 0
Event History
Frequently Asked Questions
Are Valkey servers using the default configuration affected?
No. Servers with the default setting of maxmemory-clients 0 are not affected; the issue requires client eviction to be enabled by setting maxmemory-clients to a nonzero value.
What access does an attacker need to trigger the crash?
The attacker must be an authenticated user able to write to a key on which other clients are blocked, such as through BLPOP, BLMPOP, BZPOPMIN, or XREAD BLOCK. The blocked clients do not need to be controlled by the attacker.
What is the practical impact of successful exploitation?
Successful exploitation reliably crashes the Valkey server process. The flaw occurs when the server frees a client whose command is still executing and subsequently uses that freed client.
Which versions are affected and which releases contain fixes?
Affected versions are Valkey 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 listed fixed releases are 7.2.16, 8.0.13, 8.1.12, 9.0.8, and 9.1.4.
What can be done if an upgrade cannot happen immediately?
Set maxmemory-clients to 0 to disable client eviction, which avoids the affected condition. Also restrict authenticated write access to keys used by blocked-client commands where possible.