Project

General

Profile

Actions

Bug #2863

closed

osmo-mgw segfaults on DLCX (use-after-free in mgcp_network.c)

Added by dexter over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
01/23/2018
Due date:
% Done:

100%

Spec Reference:

Description

In mgcp_network.c in mgcp_dispatch_rtp_bridge_cb() we use conn->priv to store the pointer to the opposite connection so we do not need to iterate through the connection list once more. When someone frees the opposite connection using a DLCX, then the pointer points to already freed memory. We need some mechanism to invalidate that information on DLCX, so that the callback function can know and prevent the use-after-free.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)