Skip to content
DayZeroHub
High Not yet writtenCVSS 7.5CVE-2026-130822

CVE-2026-130822: Valkey: Use-after-free when client eviction frees the client whose command is still executing

Valkey Valkey

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-130822: high-severity vulnerability (CVSS 7.5) in Valkey Valkey.

What happened

Original description from the source: 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.

Why it matters

High severity, CVSS 7.5.

Affected products and versions

Valkey Valkey < 7.2.16; Valkey Valkey >= 8.0.0, < 8.0.13; Valkey Valkey >= 8.1.0, < 8.1.12; Valkey Valkey >= 9.0.0, < 9.0.8; Valkey Valkey >= 9.1.0, < 9.1.4; Valkey Valkey >= 9.2.0-rc1, < 9.2.0

ProductVersionsFixed in
Valkey Valkey< 7.2.16—
Valkey Valkey>= 8.0.0, < 8.0.13—
Valkey Valkey>= 8.1.0, < 8.1.12—
Valkey Valkey>= 9.0.0, < 9.0.8—
Valkey Valkey>= 9.1.0, < 9.1.4—
Valkey Valkey>= 9.2.0-rc1, < 9.2.0—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-416

Relevant change history

  1. Published

    Preliminary advisory published.