CVE-2026-136157: Valkey: Use-after-free in the RDMA transport when a client is freed while pending data is processed
In Valkey 8.0.x before 8.0.11, 8.1.x before 8.1.10, 9.0.x before 9.0.6 and 9.1.x before 9.1.2, the RDMA transport's pending-data handler walks its connection list with an iterator that caches the next entry. A command processed from inside that loop, such as CLIENT KILL, can synchronously free another client's connection, and closing an RDMA connection did not remove it from the pending list, so the handler then uses freed memory. An authenticated user can use this to reliably crash the server, and the freed heap chunk can be reclaimed with attacker-influenced bytes. Only servers built with RDMA support (USERDMA) and configured with an RDMA listener are affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.0.11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.1.10 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.0.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.1.2
Event History
Frequently Asked Questions
Which deployments are affected?
Only Valkey servers built with RDMA support (USE_RDMA) and configured with an RDMA listener are affected. Deployments without both of these conditions are not affected by this issue.
What access does an attacker need?
An attacker must be an authenticated user. Exploitation involves processing a command from the RDMA pending-data handler that synchronously frees another client connection, such as CLIENT KILL.
What can successful exploitation do?
An authenticated attacker can reliably crash the server. The freed heap chunk may also be reclaimed with attacker-influenced bytes.
Which releases contain the fix?
The issue is fixed in Valkey 8.0.11, 8.1.10, 9.0.6, and 9.1.2. Earlier releases in the corresponding 8.0.x, 8.1.x, 9.0.x, and 9.1.x branches are affected when RDMA is enabled and listening.