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

Published Nov 24, 2026
·
Updated

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

1 affected component
Valkey Valkey<7.2.16, >=8.0.0<8.0.13, >=8.1.0<8.1.12, >=9.0.0<9.0.8, >=9.1.0<9.1.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 7.2.16
  2. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 8.0.13
  3. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 8.1.12
  4. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 9.0.8
  5. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 9.1.4
  6. Upgrade

    Upgrade Valkey to a version that resolves this vulnerability.

    Fixed in 9.2.0
  7. Configuration

    Set maxmemory-clients to 0 to disable client eviction; servers using this setting are not affected.

    Valkey maxmemory-clients = 0

Event History

Nov 24, 2026
CVE Published
via MITRE·01:57 PM
Data Sourced
via MITRE·01:57 PM
RemedyDescriptionSeverityWeakness

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203