p PatchFirst

CVE-2026-130822

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

CVSS 7.5 · High · EPSS 0.8% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • valkeyUpdate to 7.2.16 / 8.0.13 / 8.1.12 …
  • valkey Alpine 3.21Update to 7.2.16-r0
  • valkey Alpine 3.22Update to 8.1.12-r0
  • valkey Alpine 3.23Update to 9.0.8-r0
  • and 6 more

Check the installed version:

apk list -I -o valkey

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system · database

Affected products and versions

  • valkey

    Versions
    • ≥ 0, < 7.2.16: Affected (semver)
    • ≥ 8.0.0, < 8.0.13: Affected (semver)
    • ≥ 8.1.0, < 8.1.12: Affected (semver)
    • ≥ 9.0.0, < 9.0.8: Affected (semver)
    • ≥ 9.1.0, < 9.1.4: Affected (semver)
    • ≥ 9.2.0-rc1, < 9.2.0: Affected (semver)

    Update to 7.2.16; Update to 8.0.13; Update to 8.1.12; Update to 9.0.8; Update to 9.1.4; Update to 9.2.0

  • valkey Alpine 3.21

    Affected ranges
    • ECOSYSTEM: < 7.2.16-r0

    Update to 7.2.16-r0

  • valkey Alpine 3.22

    Affected ranges
    • ECOSYSTEM: < 8.1.12-r0

    Update to 8.1.12-r0

  • valkey Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 9.0.8-r0

    Update to 9.0.8-r0

  • valkey Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 9.0.8-r0

    Update to 9.0.8-r0

  • valkey Debian 13

    Versions
    • 8.1.1+dfsg1-3
    • 8.1.1+dfsg1-3+deb13u1
    • 8.1.1+dfsg1-3+deb13u2
    • 8.1.1+dfsg1-3+deb13u3
    • 8.1.4+dfsg1-1
    • 8.1.4+dfsg1-2
    All versions (10)
    • 9.1.1-1
    • 9.1.2-1
    • 9.1.3-1
    • 9.1.4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • valkey Debian 14

    Versions
    • 8.1.1+dfsg1-3
    • 8.1.4+dfsg1-1
    • 8.1.4+dfsg1-2
    • 9.1.1-1
    • 9.1.2-1
    • 9.1.3-1
    Affected ranges
    • ECOSYSTEM: < 9.1.4-1

    Update to 9.1.4-1

  • valkey Ubuntu Pro 24.04 LTS

    Versions
    • 7.2.5+dfsg1-2ubuntu4~24.04.1
    • 7.2.7+dfsg1-0ubuntu0.24.04.1
    • 7.2.8+dfsg1-0ubuntu0.24.04.1
    • 7.2.8+dfsg1-0ubuntu0.24.04.2
    • 7.2.8+dfsg1-0ubuntu0.24.04.3
    • 7.2.10+dfsg1-0ubuntu0.1
    All versions (12)
    • 7.2.11+dfsg1-0ubuntu0.1
    • 7.2.11+dfsg1-0ubuntu0.2
    • 7.2.12+dfsg1-0ubuntu0.1
    • 7.2.13+dfsg1-0ubuntu0.1
    • 7.2.13+dfsg1-0ubuntu0.1+esm1
    • 7.2.14+dfsg1-0ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • valkey Ubuntu 26.10

    Versions
    • 9.0.3-0ubuntu2
    • 9.0.4-0ubuntu1
    • 9.1.1-0ubuntu2
    • 9.1.2-0ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • valkey Ubuntu 26.04 LTS

    Versions
    • 8.1.3+dfsg1-0ubuntu2
    • 8.1.4+dfsg1-0ubuntu1
    • 9.0.2-0ubuntu1
    • 9.0.3-0ubuntu1
    • 9.0.3-0ubuntu2
    • 9.0.4-0ubuntu0.1
    All versions (8)
    • 9.0.4-0ubuntu0.2
    • 9.0.6-0ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →