REDHAT-BUG-2517907: 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 tlsProcessPendingData function iterates pendinglist while an authenticated client can trigger CLIENT KILL, causing connTLSClose to delete the iterator's cached next node and producing a use-after-free that can crash the server or potentially allow remote code execution when TLS is enabled. 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
Who can exploit this issue?
An authenticated Valkey client can trigger the vulnerable condition. Systems with TLS enabled are affected.
What is the impact of successful exploitation?
Exploitation can cause a server crash through a use-after-free condition and may potentially allow remote code execution.
Which versions 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.