A stack-based buffer overflow exists in Kamailio v6.1.3 and v6.1.4 in the ims_registrar_pcscf module. When processing a crafted application/reginfo+xml NOTIFY message, process_contact() copies an attacker-controlled port value from the alias parameter into a fixed 5-byte stack buffer without validating its length. An unauthenticated remote attacker can trigger stack corruption and terminate the P-CSCF process, resulting in denial of service.
https://github.com/kamailio/kamailio/pull/4958
https://github.com/kamailio/kamailio/issues/4954
https://github.com/kamailio/kamailio/commit/21261436492f0014930e804e20586e3833bb91b9
https://gist.github.com/hackeryounow/7d7ccc9ec501a5d8c9143b2e1bcc11cb