net: ipc_router: Bind only a client port as control port

IPC Router binds any port as a control port and moves it from the client
port list to control port list. Misbehaving clients can exploit this
incorrect behavior.

IPC Router to check if the port is a client port before binding it as a
control port.

CRs-Fixed: 974577

CVE-2016-2059
https://source.codeaurora.org/quic/la/kernel/msm-3.18/commit/?id=9e8bdd63f7011dff5523ea435433834b3702398d

Change-Id: Ib904d58f8988a7bf99c6a6b41ba141a86ee0c989
Signed-off-by: w1130.jang <w1130.jang@samsung.com>
1 file changed