vendor:
by:
7.5
CVSS
HIGH
Heap Buffer Overflow
121
CWE
Product Name:
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested:
Heap Buffer Overflow in webrtc::UlpfecReceiverImpl::AddReceivedRedPacket
There are several calls to memcpy that can overflow the destination buffer in webrtc::UlpfecReceiverImpl::AddReceivedRedPacket. The method takes a parameter incoming_rtp_packet, which is an RTP packet with a mac length that is defined by the transport (2048 bytes for DTLS in Chrome). This packet is then copied to the received_packet in several locations in the method, depending on packet properties, using the length of the incoming_rtp_packet as the copy length. The received_packet is a ForwardErrorCorrection::ReceivedPacket, which has a max size of 1500. Therefore, the memcpy calls in this method can overflow this buffer.
Mitigation:
To mitigate this vulnerability, the method should check the size of the incoming_rtp_packet and ensure that it does not exceed the size of the received_packet buffer before performing the memcpy operation. Additionally, the size of the received_packet buffer should be increased to accommodate larger packets if necessary.