REDHAT-BUG-2583399: High severity Valkey Valkey vulnerability
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
Valkeyto a version that resolves this vulnerability.Fixed in 8.0.11 - Upgrade
Upgrade
Valkeyto a version that resolves this vulnerability.Fixed in 8.1.10 - Upgrade
Upgrade
Valkeyto a version that resolves this vulnerability.Fixed in 9.0.6 - Upgrade
Upgrade
Valkeyto a version that resolves this vulnerability.Fixed in 9.1.2
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Only Valkey servers built with RDMA support (USE_RDMA) and configured with an RDMA listener are affected. Deployments without an RDMA listener are not identified as affected by the provided information.
What level of access does an attacker need?
An attacker must be an authenticated user able to issue commands. Exploitation involves processing a command such as CLIENT KILL while the RDMA pending-data handler is iterating connections.
What is the likely impact of successful exploitation?
An authenticated attacker can reliably crash the server. The freed heap chunk may also be reclaimed with attacker-influenced bytes.
Which versions need to be updated?
Affected releases are 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. Updating to the stated fixed release for the applicable branch addresses the affected version range.