[asterisk-bugs] [JIRA] (ASTERISK-25306) Persistent subscriptions can save multiple SIP messages at once, leading to potential crashes.

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Tue Sep 29 16:42:38 CDT 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Harwell updated ASTERISK-25306:
-------------------------------------

    Target Release Version/s: 13.6.0

> Persistent subscriptions can save multiple SIP messages at once, leading to potential crashes.
> ----------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-25306
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25306
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_pubsub
>    Affects Versions: 13.4.0
>            Reporter: Mark Michelson
>      Target Release: 13.6.0
>
>
> Currently, persistent subscriptions save the data read from the socket as the SIP packet. The problem is that with stream-based sockets, the data read from the socket could include multiple SIP packets. If the first of those SIP packets is a SIP response instead of a SUBSCRIBE request, then when the SUBSCRIBE request is handled, then both the response and the SUBSCRIBE are saved to persistent storage. If Asterisk is restarted, then attempting to recreate the subscription will crash since the code assumes that the recreated SIP message will be a SUBSCRIBE request, not a response.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list