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

State
Published
Severity
7.5 High
Published
Nov 24, 2026
Updated
Nov 24, 2026
Reserved
Nov 17, 2026

Read the record on cve.org

Description

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.

ProductVersions
Valkey Valkeybefore 7.2.16 Affected8.0.0 to before 8.0.13 Affected8.1.0 to before 8.1.12 Affected9.0.0 to before 9.0.8 Affected9.1.0 to before 9.1.4 Affected9.2.0-rc1 to before 9.2.0 Affected

Weaknesses

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.