CVE-2026-136157
Description
A flaw was found in Valkey. When processing network traffic over Remote Direct Memory Access (RDMA) connections, the pending-data handler fails to properly remove closed connections from its list, resulting in access to already-freed memory. An authenticated remote attacker can exploit this vulnerability by terminating a connection while pending data is actively being processed. Successful exploitation may allow the attacker to execute arbitrary code or crash the server, resulting in a Denial of Service (DoS).
Statement
Red Hat has classified this flaw as Important because authenticated remote users could potentially gain arbitrary code execution or induce unrecoverable daemon crashes. The issue specifically requires Valkey to be built with RDMA networking capabilities and configured with an active RDMA listening endpoint. Deployments using standard TCP or TLS transports are not exposed to this flaw, limiting overall risk in default environments.
Mitigation
To mitigate this vulnerability, disable RDMA listeners in the Valkey configuration or isolate network access so only trusted hosts can reach the service.
Restrict network access to the Valkey listening ports using `firewalld`:
sh
firewall-cmd --permanent --zone=public --remove-port=6379/tcp
firewall-cmd --permanent --zone=trusted --add-source=<trusted_ip_range>
firewall-cmd --reload
If RDMA configuration directives were modified in the Valkey configuration file, restart the daemon:
sh
systemctl restart valkey
Warning: Restarting the Valkey service will terminate active client connections and temporarily disrupt database availability.
Caveats: Restricting access to trusted subnets prevents unauthorized hosts from connecting. Disabling RDMA listeners requires clients to utilize standard TCP/TLS networking, which may impact latency and throughput for workloads dependent on RDMA acceleration.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.5 | N/A | 7.5 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | High |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | High | N/A | High |
| Integrity Impact | High | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
cve.org: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
If the expired pointer is used in a read operation, an attacker might be able to control data read in by the application.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
If the expired pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.
Integrity,Confidentiality,Availability
Technical Impact: Execute Unauthorized Code or Commands
If the expired pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.