5.4medium
Apache bRPC: Use-After-Free in RTMP Chunk Stream Handling via Abort Message
- Severity
- 5.4medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.32% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
Description
Use-after-free in the RTMP protocol implementation in Apache bRPC (version < 1.18.0) on all platforms allows a malicious RTMP peer to crash the process or potentially corrupt memory via a crafted Abort message. Root Cause: When processing an RTMP Abort (protocol control message type 2), the RTMP policy implementation deleted the target RtmpChunkStream object. The send path (RtmpUnsentMessage::AppendAndDestroySelf -> RtmpChunkStream::SerializeMessage) runs concurrently on sender threads and dereferences the same RtmpChunkStream object without synchronization. If a remote peer sends an Abort message naming a chunk stream that is concurrently being used to serialize an outgoing message, the stream object is freed while still in use, resulting in a use-after-free. Additionally, deleting the chunk stream discarded its previous message header, so subsequent compressed (type-3) chunk headers on that stream could no longer be decoded. Affected Scenarios: Any application using the bRPC RTMP protocol implementation (rtmp policy), either as an RTMP server or as an RTMP client, where the remote endpoint is untrusted. The attacker needs to send an Abort message targeting a chunk stream id that is concurrently used for sending, which can crash the process or lead to memory corruption. 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/3515
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| apache/brpc | before 1.18.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Use-after-free in the RTMP protocol implementation in Apache bRPC (version < 1.18.0) on all platforms allows a malicious RTMP peer to crash the process or potentially corrupt memory via a crafted Abort message. Root Cause: When processing an RTMP Abort (protocol control message type 2), the RTMP policy implementation deleted the target RtmpChunkStream object. The send path (RtmpUnsentMessage::AppendAndDestroySelf -> RtmpChunkStream::SerializeMessage) runs concurrently on sender threads and dereferences the same RtmpChunkStream object without synchronization. If a remote peer sends an Abort message naming a chunk stream that is concurrently being used to serialize an outgoing message, the stream object is freed while still in use, resulting in a use-after-free. Additionally, deleting the chunk stream discarded its previous message header, so subsequent compressed (type-3) chunk headers on that stream could no longer be decoded. Affected Scenarios: Any application using the bRPC RTMP protocol implementation (rtmp policy), either as an RTMP server or as an RTMP client, where the remote endpoint is untrusted. The attacker needs to send an Abort message targeting a chunk stream id that is concurrently used for sending, which can crash the process or lead to memory corruption. 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/3515
NVD (es)
Uso después de liberación en la implementación del protocolo RTMP en Apache bRPC (versiones anteriores a la 1.18.0) en todas las plataformas permite a un peer RTMP malicioso bloquear el proceso o potencialmente provocar corrupción de memoria mediante un mensaje Abort manipulado.\n\nCausa raíz: \nAl procesar un Abort RTMP (mensaje de control del protocolo tipo 2), la implementación de la política RTMP eliminó el objeto RtmpChunkStream de destino. La ruta de envío (RtmpUnsentMessage::AppendAndDestroySelf -> RtmpChunkStream::SerializeMessage) se ejecuta concurrentemente en hilos de envío y desreferencia el mismo objeto RtmpChunkStream sin sincronización. Si un peer remoto envía un mensaje Abort que nombra un chunk stream que está siendo usado simultáneamente para serializar un mensaje saliente, el objeto del stream se libera mientras aún está en uso, lo que produce un uso después de liberación. Además, al eliminar el chunk stream se descarta su encabezado de mensaje previo, de modo que los encabezados de chunk comprimidos (tipo?3) posteriores en ese stream ya no pueden decodificarse.\n\nEscenarios afectados: \nCualquier aplicación que utilice la implementación del protocolo RTMP de bRPC (política rtmp), ya sea como servidor RTMP o como cliente RTMP, donde el endpoint remoto no sea de confianza. El atacante necesita enviar un mensaje Abort que apunte a un identificador de chunk stream que se esté usando concurrentemente para el envío, lo que puede bloquear el proceso o provocar corrupción de memoria.\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/3515
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-84727 changed 2026-10-21 | CVE Terms of Use |
| NVD | CVE-2026-84727 changed 2026-10-26 | Public domain |