Valkey: Use-after-free in the RDMA transport when a client is freed while pending data is processed
Summary
| CVE | CVE-2026-136157 |
|---|---|
| State | PUBLISHED |
| Assigner | Akrites |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-24 15:17:33 UTC |
| Updated | 2026-11-24 15:19:53 UTC |
| Description | 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 (USE_RDMA) and configured with an RDMA listener are affected. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from 7fefd608-56a6-419f-a002-fd8543c0710a
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-416 | CWE-416 CWE-416 Use After Free
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | 7fefd608-56a6-419f-a002-fd8543c0710a | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 7.5 | HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/valkey-io/valkey/pull/4534 | 7fefd608-56a6-419f-a002-fd8543c0710a | github.com | |
| github.com/valkey-io/valkey/security/advisories/GHSA-jcj7-v34w-v9vv | 7fefd608-56a6-419f-a002-fd8543c0710a | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Andreas Gabriel Berbescu (en)
Additional Advisory Data
Solutions
CNA: Upgrade to Valkey 8.0.11, 8.1.10, 9.0.6, 9.1.2 or later.
Workarounds
CNA: If you do not need RDMA, build without USE_RDMA or do not configure an RDMA listener. Otherwise, use Valkey ACLs to restrict the CLIENT command, in particular CLIENT KILL.
There are currently no legacy QID mappings associated with this CVE.