REDHAT-BUG-2517906: Use After Free
Valkey is a distributed key-value database. Prior to 7.2.14, 8.0.10, 8.1.9, 9.0.5, and 9.1.1, Valkey's RESTORE command accepts a malformed RDB stream payload that assigns one Pending Entry List NACK to multiple consumers during stream consumer-group deserialization, causing a use-after-free when one consumer is deleted while another still references the shared NACK and potentially allowing remote code execution. This issue is fixed in versions 7.2.14, 8.0.10, 8.1.9, 9.0.5, and 9.1.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Valkeyto a version that resolves this vulnerability.Fixed in 7.2.14 - Upgrade
Upgrade
Valkeyto a version that resolves this vulnerability.Fixed in 8.0.10 - Upgrade
Upgrade
Valkeyto a version that resolves this vulnerability.Fixed in 8.1.9 - Upgrade
Upgrade
Valkeyto a version that resolves this vulnerability.Fixed in 9.0.5 - Upgrade
Upgrade
Valkeyto a version that resolves this vulnerability.Fixed in 9.1.1
Event History
Frequently Asked Questions
What must an attacker be able to do to exploit this issue?
An attacker needs to be able to submit a malformed RDB stream payload through Valkey's RESTORE command. The payload causes the same Pending Entry List NACK to be assigned to multiple consumers during stream consumer-group deserialization.
Which Valkey releases contain the fix?
The issue is fixed in Valkey 7.2.14, 8.0.10, 8.1.9, 9.0.5, and 9.1.1. Versions before the corresponding fixed release are affected.
What is the impact after a malicious payload is restored?
Deleting one consumer can free a shared NACK while another consumer still references it, resulting in a use-after-free condition. The issue may allow remote code execution.