CVE-2021-37706 Potential integer underflow upon receiving STUN message in PJSIP
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. In affected versions if the incoming STUN message contains an ERROR-CODE attribute, the header length is not checked before performing a subtraction operation, potentially resulting in an integer underflow scenario. This issue affects all users that use STUN. A malicious actor located within the victim’s network may forge and send a specially crafted UDP (STUN) message that could remotely execute arbitrary code on the victim’s machine. Users are advised to upgrade as soon as possible. There are no known workarounds.
Upgrade path
19 packages: 17 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/pjproject(Alpine v3.16) | < 2.12-r0 | 2.12-r0 | Fixed |
| alpine/pjproject(Alpine v3.17) | < 2.12-r0 | 2.12-r0 | Fixed |
| alpine/pjproject(Alpine v3.18) | < 2.12-r0 | 2.12-r0 | Fixed |
| alpine/pjproject(Alpine v3.19) | < 2.12-r0 | 2.12-r0 | Fixed |
| alpine/pjproject(Alpine v3.20) | < 2.12-r0 | 2.12-r0 | Fixed |
| alpine/pjproject(Alpine v3.21) | < 2.12-r0 | 2.12-r0 | Fixed |
| alpine/pjproject(Alpine v3.22) | < 2.12-r0 | 2.12-r0 | Fixed |
| alpine/pjproject(Alpine v3.23) | < 2.12-r0 | 2.12-r0 | Fixed |
| alpine/pjproject(Alpine v3.24) | < 2.12-r0 | 2.12-r0 | Fixed |
| asterisk certified asterisk | < 16.8.0; = 16.8.0; = 16.8.0-cert1; = 16.8.0-cert2 +10 more | 16.8.0 | Fixed |
| debian/ring(Debian 12) | < 20230206.0~ds1-1 | 20230206.0~ds1-1 | Fixed |
| Sangoma asterisk | >= 16.0.0, < 16.24.1; >= 18.0.0, < 18.10.1; >= 19.0.0, < 19.2.1 | 16.24.1, 18.10.1, 19.2.1 | Fixed |
| teluu pjsip | <= 2.11.1 | after 2.11.1 | Fixed |
| ubuntu/pjproject(Ubuntu Pro 16.04) | < 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1; = 2.1.0.0.ast20130823-1; = 2.1.0.0.ast20130823-1+deb8u1build0.16.04.1 | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | Fixed |
| ubuntu/pjproject(Ubuntu Pro 18.04) | < 2.7.2~dfsg-1ubuntu0.1~esm1; = 2.6~dfsg-2; = 2.7.1~dfsg-1; = 2.7.1~dfsg-1build1 +2 more | 2.7.2~dfsg-1ubuntu0.1~esm1 | Fixed |
| ubuntu/ring(Ubuntu 20.04) | < 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1; = 20190215.1.f152c98~ds1-1; = 20190215.1.f152c98~ds1-1build1; = 20190215.1.f152c98~ds1-1build2 | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | Fixed |
| ubuntu/ring(Ubuntu Pro 18.04) | < 20180228.1.503da2b~ds1-1ubuntu0.1~esm1; = 20170803.2.5fcfe3f~dfsg1-1; = 20171024.1.eadbdeb~ds1-1; = 20171129.2.cf5bbff~ds1-1 +6 more | 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 | Fixed |
| debian linux | = 9.0; = 10.0 | No fix listed | Versions listed |
| pjsip pjproject | = <= 2.11.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| teluu pjsip | <= 2.11.1 | No fix listed |
| asterisk certified asterisk | < 16.8.0 | 16.8.0 |
| asterisk certified asterisk | = 16.8.0 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert1 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert10 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert11 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert12 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert2 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert3 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert4 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert5 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert6 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert7 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert8 | No fix listed |
| asterisk certified asterisk | = 16.8.0-cert9 | No fix listed |
| Sangoma asterisk | >= 16.0.0, < 16.24.1 | 16.24.1 |
| Sangoma asterisk | >= 18.0.0, < 18.10.1 | 18.10.1 |
| Sangoma asterisk | >= 19.0.0, < 19.2.1 | 19.2.1 |
| debian linux | = 9.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| alpine/pjproject(Alpine:v3.16) | < 2.12-r0 | 2.12-r0 |
| alpine/pjproject(Alpine:v3.17) | < 2.12-r0 | 2.12-r0 |
| alpine/pjproject(Alpine:v3.18) | < 2.12-r0 | 2.12-r0 |
| alpine/pjproject(Alpine:v3.19) | < 2.12-r0 | 2.12-r0 |
| alpine/pjproject(Alpine:v3.20) | < 2.12-r0 | 2.12-r0 |
Show 29 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/pjproject(Alpine:v3.21) | < 2.12-r0 | 2.12-r0 |
| alpine/pjproject(Alpine:v3.22) | < 2.12-r0 | 2.12-r0 |
| alpine/pjproject(Alpine:v3.23) | < 2.12-r0 | 2.12-r0 |
| alpine/pjproject(Alpine:v3.24) | < 2.12-r0 | 2.12-r0 |
| pjsip pjproject | = <= 2.11.1 | No fix listed |
| debian/ring(Debian:12) | < 20230206.0~ds1-1 | 20230206.0~ds1-1 |
| ubuntu/pjproject(Ubuntu:Pro:16.04) | < 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 |
| ubuntu/pjproject(Ubuntu:Pro:16.04) | = 2.1.0.0.ast20130823-1 | No fix listed |
| ubuntu/pjproject(Ubuntu:Pro:16.04) | = 2.1.0.0.ast20130823-1+deb8u1build0.16.04.1 | No fix listed |
| ubuntu/pjproject(Ubuntu:Pro:18.04) | < 2.7.2~dfsg-1ubuntu0.1~esm1 | 2.7.2~dfsg-1ubuntu0.1~esm1 |
| ubuntu/pjproject(Ubuntu:Pro:18.04) | = 2.6~dfsg-2 | No fix listed |
| ubuntu/pjproject(Ubuntu:Pro:18.04) | = 2.7~dfsg-1 | No fix listed |
| ubuntu/pjproject(Ubuntu:Pro:18.04) | = 2.7.1~dfsg-1 | No fix listed |
| ubuntu/pjproject(Ubuntu:Pro:18.04) | = 2.7.1~dfsg-1build1 | No fix listed |
| ubuntu/pjproject(Ubuntu:Pro:18.04) | = 2.7.2~dfsg-1 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | < 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 | 20180228.1.503da2b~ds1-1ubuntu0.1~esm1 |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20170803.2.5fcfe3f~dfsg1-1 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20171024.1.eadbdeb~ds1-1 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20171129.2.cf5bbff~ds1-1 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20171129.2.cf5bbff~ds1-2 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20180119.1.9e06f94~ds1-1 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20180119.1.9e06f94~ds1-3 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20180222.1.7bffde2~ds2-2 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20180228.1.503da2b~ds1-1 | No fix listed |
| ubuntu/ring(Ubuntu:Pro:18.04) | = 20180228.1.503da2b~ds1-1build1 | No fix listed |
| ubuntu/ring(Ubuntu:20.04) | < 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 | 20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1 |
| ubuntu/ring(Ubuntu:20.04) | = 20190215.1.f152c98~ds1-1 | No fix listed |
| ubuntu/ring(Ubuntu:20.04) | = 20190215.1.f152c98~ds1-1build1 | No fix listed |
| ubuntu/ring(Ubuntu:20.04) | = 20190215.1.f152c98~ds1-1build2 | No fix listed |
References
- Debian Security Tracker CVE-2021-37706 vendor-advisory
- packetstormsecurity.com third-party-advisory vdb-entry
- 20220304 AST-2022-004: pjproject: integer underflow on STUN message mailing-list patch third-party-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking patch third-party-advisory
- [debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update mailing-list third-party-advisory
- [debian-lts-announce] 20221117 [SECURITY] [DLA 3194-1] asterisk security update mailing-list third-party-advisory
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update mailing-list
- GLSA-202210-37 third-party-advisory vendor-advisory
- DSA-5285 third-party-advisory vendor-advisory
- lists.debian.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking
- ubuntu.com vendor-advisory