CVE-2018-16657: Null Pointer Dereference

Published Sep 7, 2018
·
Updated

In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a crafted SIP message with an invalid Via header causes a segmentation fault and crashes Kamailio. The reason is missing input validation in the crcittstringarray core function for calculating a CRC hash for To tags. (An additional error is present in the checkviaaddress core function: this function also misses input validation.) This could result in denial of service and potentially the execution of arbitrary code.

Affected Software

6 affected componentsFixes available
debian/kamailio
5.2.1-15.2.1-1+deb10u15.4.4-15.6.3-25.7.2-1
debian/kamailio<=4.4.4-2, <=4.2.0-2+deb8u3
4.4.4-2+deb9u35.1.4-1
Debian Debian Linux=8.0
Debian Debian Linux=9.0
kamailio Kamailio<5.0.7
kamailio Kamailio>=5.1.0<5.1.4

Event History

Sep 7, 2018
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2018-16657?

CVE-2018-16657 has a severity rating that indicates a significant security risk due to the potential for segmentation faults and service crashes in Kamailio.

2

How do I fix CVE-2018-16657?

To fix CVE-2018-16657, update Kamailio to version 5.0.7 or later, or 5.1.4 or later.

3

What vulnerability does CVE-2018-16657 expose Kamailio to?

CVE-2018-16657 exposes Kamailio to crashes caused by crafted SIP messages with invalid Via headers.

4

Which versions of Kamailio are affected by CVE-2018-16657?

CVE-2018-16657 affects Kamailio versions before 5.0.7 and 5.1.x versions before 5.1.4.

5

What is the cause of the CVE-2018-16657 vulnerability in Kamailio?

The cause of CVE-2018-16657 is the missing input validation in the crcitt_string_array function, leading to segmentation faults.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203