NULL pointer dereference in Kamailio
CVE-2018-16657
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 crcitt_string_array core function for calculating a CRC hash for To tags. (An additional error is present in the check_via_address core function: this function also misses input validation.) This could result in denial of service and potentially the execution of arbitrary code.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.036, 89.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Kamailio
- Debian Linux — versions 8.0, 9.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- DSA-4292 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20180912 [SECURITY] [DLA 1503-1] kamailio security update (mailing-list, Mailing List, Third Party Advisory)
- skalatan.de/blog/advisory-hw-2018-06 (Exploit, Patch, Third Party Advisory)