Valkey: Use-after-free when client eviction frees the client whose command is still executing
- CVE-2026-130822
- EUVD-2026-134075
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.
Text from the CVE.org record.
Recommendation
Valkey
- If you run 9.2.xupdate to 9.2.0 or laterPatch update: breaking changes are unlikely
- If you run 9.1.xupdate to 9.1.4 or laterPatch update: breaking changes are unlikely
- If you run 9.0.xupdate to 9.0.8 or laterPatch update: breaking changes are unlikely
- If you run 8.1.xupdate to 8.1.12 or laterPatch update: breaking changes are unlikely
- If you run 8.0.xupdate to 8.0.13 or laterPatch update: breaking changes are unlikely
- If you run a version before 7.2.16update to 7.2.16 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Valkey
Affected versions Fixed in from 9.2.0-rc1 to before 9.2.0 9.2.0 from 9.1.0 to before 9.1.4 9.1.4 from 9.0.0 to before 9.0.8 9.0.8 from 8.1.0 to before 8.1.12 8.1.12 from 8.0.0 to before 8.0.13 8.0.13 before 7.2.16 7.2.16
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.