Name | CVE-2018-16657 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-1503-1, DSA-4292-1 |
Debian Bugs | 908324 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
kamailio (PTS) | jessie, jessie (lts) | 4.2.0-2+deb8u5 | fixed |
stretch (security), stretch (lts), stretch | 4.4.4-2+deb9u3 | fixed | |
buster | 5.2.1-1 | fixed | |
buster (security) | 5.2.1-1+deb10u1 | fixed | |
bullseye | 5.4.4-1 | fixed | |
bookworm | 5.6.3-2 | fixed | |
sid | 5.7.4-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
kamailio | source | jessie | 4.2.0-2+deb8u5 | DLA-1503-1 | ||
kamailio | source | stretch | 4.4.4-2+deb9u3 | DSA-4292-1 | ||
kamailio | source | (unstable) | 5.1.4-1 | 908324 |
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)