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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | kamailio | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | kamailio | Fix pending | 5.1.2-1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2018-16657 |
| Ubuntu 16.04 | kamailio | Fix pending | 4.3.4-1.1ubuntu2.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2018-16657 |
| Ubuntu 14.04 | kamailio | Fix pending | ||
| Debian 14 | kamailio | Fixed | 5.1.4-1 | DEBIAN-CVE-2018-16657 |
| Debian 13 | kamailio | Fixed | 5.1.4-1 | DEBIAN-CVE-2018-16657 |
| Debian 12 | kamailio | Fixed | 5.1.4-1 | DEBIAN-CVE-2018-16657 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2018/dsa-4292 (vendor-advisory)
References
- https://www.debian.org/security/2018/dsa-4292
- https://lists.debian.org/debian-lts-announce/2018/09/msg00013.html
- https://skalatan.de/blog/advisory-hw-2018-06
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.