CVE-2018-16657

NameCVE-2018-16657
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1503-1, DSA-4292-1
Debian Bugs908324

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
kamailio (PTS)jessie4.2.0-2+deb8u3vulnerable
jessie (security)4.2.0-2+deb8u5fixed
stretch4.4.4-2+deb9u1vulnerable
stretch (security)4.4.4-2+deb9u3fixed
buster, sid5.1.5-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
kamailiosource(unstable)5.1.4-1908324
kamailiosourcejessie4.2.0-2+deb8u5DLA-1503-1
kamailiosourcestretch4.4.4-2+deb9u3DSA-4292-1

Notes

https://skalatan.de/blog/advisory-hw-2018-06
https://github.com/kamailio/kamailio/commit/ad68e402ece8089f133c10de6ce319f9e28c0692 (master)
https://github.com/kamailio/kamailio/commit/d67b2f9874ca23bd69f18df71b8f53b1b6151f6d (5.1)
https://github.com/kamailio/kamailio/commit/f07dabffef98c7088cdbc2bd695a4ae7a241b159 (5.0)

Search for package or bug name: Reporting problems