CVE-2026-82942
JSON

7.5high

Apache bRPC: Race Condition on the Shared Socket Input Buffer in the RDMA Transport Causes Remote Denial of Service

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache

Description

A data race in the RDMA transport of Apache bRPC (versions < 1.18.0) allows a remote client to crash the server process (denial of service) when RDMA is enabled at build time and runtime. Root Cause: When a bRPC server negotiates RDMA with a client, the handshake completes on the TCP fd, but the server kept parsing that fd afterwards as if it were still an RPC channel. The TCP-fd input stream and the RDMA QP input stream (driven by CQ events) shared the same Socket::_read_buf, preferred_index and parsing_context without synchronization. In addition, CQ event processing could start while the handshake parsing was still in progress, and the handshake ACK phase could consume bytes belonging to the next protocol. A remote, unauthenticated client that has completed the RDMA handshake can send data on the TCP fd at the same time RDMA messages are being processed, corrupting the shared input buffer and parser state and crashing the server process (CWE-362, availability impact). Affected Scenarios: Use a bRPC server with RDMA support enabled (built with BRPC_WITH_RDMA and serving rdma:// / SOCKET_MODE_RDMA sockets) and accept connections from untrusted clients. Deployments without RDMA are not affected. How to Fix: (Choose one of the following options) 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3505

Affected

Product or packageVersionsReported by
apache/brpcbefore 1.18.0CVE List

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

A data race in the RDMA transport of Apache bRPC (versions < 1.18.0) allows a remote client to crash the server process (denial of service) when RDMA is enabled at build time and runtime. Root Cause: When a bRPC server negotiates RDMA with a client, the handshake completes on the TCP fd, but the server kept parsing that fd afterwards as if it were still an RPC channel. The TCP-fd input stream and the RDMA QP input stream (driven by CQ events) shared the same Socket::_read_buf, preferred_index and parsing_context without synchronization. In addition, CQ event processing could start while the handshake parsing was still in progress, and the handshake ACK phase could consume bytes belonging to the next protocol. A remote, unauthenticated client that has completed the RDMA handshake can send data on the TCP fd at the same time RDMA messages are being processed, corrupting the shared input buffer and parser state and crashing the server process (CWE-362, availability impact). Affected Scenarios: Use a bRPC server with RDMA support enabled (built with BRPC_WITH_RDMA and serving rdma:// / SOCKET_MODE_RDMA sockets) and accept connections from untrusted clients. Deployments without RDMA are not affected. How to Fix: (Choose one of the following options) 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3505

NVD (es)

Una condición de carrera en el transporte RDMA de Apache bRPC (versiones anteriores a la 1.18.0) permite que un cliente remoto provoque la caída del proceso del servidor (denegación de servicio) cuando RDMA está habilitado en tiempo de compilación y ejecución.\n\nCausa raíz:\nCuando un servidor bRPC negocia RDMA con un cliente, el apretón de manos se completa en el descriptor TCP fd, pero el servidor siguió analizando ese fd después como si siguiera siendo un canal RPC. El flujo de entrada del descriptor TCP fd y el flujo de entrada RDMA QP (impulsado por eventos CQ) compartían el mismo Socket::_read_buf, preferred_index y parsing_context sin sincronización. Además, el procesamiento de eventos CQ podía iniciarse mientras el análisis del apretón de manos aún estaba en curso, y la fase ACK del apretón de manos podía consumir bytes pertenecientes al siguiente protocolo. Un cliente remoto no autenticado que haya completado el apretón de manos RDMA puede enviar datos en el descriptor TCP fd al mismo tiempo que se procesan mensajes RDMA, corrompiendo el búfer de entrada compartido y el estado del analizador y provocando la caída del proceso del servidor (CWE-362, impacto de disponibilidad).\n\nEscenarios afectados:\nUtilizar un servidor bRPC con soporte RDMA habilitado (compilado con BRPC_WITH_RDMA y sirviendo sockets rdma:// / SOCKET_MODE_RDMA) y aceptar conexiones de clientes no confiables. Las implementaciones sin RDMA no se ven afectadas.\n\nCómo corregir:\n(Elija una de las siguientes opciones)\n1. Actualizar bRPC a la versión 1.18.0, que corrige este problema.\n2. Aplicar este parche: https://github.com/apache/brpc/pull/3505

References

Sources

SourceRecordLicence
CVE ListCVE-2026-82942 changed 2026-10-30CVE Terms of Use
NVDCVE-2026-82942 changed 2026-10-30Public domain