CVE-2022-31031 Potential stack buffer overflow when parsing message as a STUN client
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- 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 versions prior to and including 2.12.1 a stack buffer overflow vulnerability affects PJSIP users that use STUN in their applications, either by: setting a STUN server in their account/media config in PJSUA/PJSUA2 level, or directly using pjlib-util/stun_simple API. A patch is available in commit 450baca which should be included in the next release. There are no known workarounds for this issue.
Upgrade path
15 packages: 11 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/pjproject(Ubuntu Pro 16.04) | = 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; All versions | No fix listed | No fix yet |
| ubuntu/pjproject(Ubuntu Pro 18.04) | = 2.6~dfsg-2; = 2.7.1~dfsg-1; = 2.7.1~dfsg-1build1; = 2.7.2~dfsg-1 +3 more | No fix listed | No fix yet |
| alpine/pjproject(Alpine v3.18) | < 2.13-r0 | 2.13-r0 | Fixed |
| alpine/pjproject(Alpine v3.19) | < 2.13-r0 | 2.13-r0 | Fixed |
| alpine/pjproject(Alpine v3.20) | < 2.13-r0 | 2.13-r0 | Fixed |
| alpine/pjproject(Alpine v3.21) | < 2.13-r0 | 2.13-r0 | Fixed |
| alpine/pjproject(Alpine v3.22) | < 2.13-r0 | 2.13-r0 | Fixed |
| alpine/pjproject(Alpine v3.23) | < 2.13-r0 | 2.13-r0 | Fixed |
| alpine/pjproject(Alpine v3.24) | < 2.13-r0 | 2.13-r0 | Fixed |
| debian/ring(Debian 12) | < 20230206.0~ds1-1 | 20230206.0~ds1-1 | Fixed |
| teluu pjsip | <= 2.12.1 | after 2.12.1 | 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 | = 10.0; = 11.0 | No fix listed | Versions listed |
| pjsip pjproject | = <= 2.12.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pjsip pjproject | = <= 2.12.1 | No fix listed |
| teluu pjsip | <= 2.12.1 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| debian/ring(Debian:12) | < 20230206.0~ds1-1 | 20230206.0~ds1-1 |
| ubuntu/pjproject(Ubuntu:Pro:16.04) | All versions | No fix listed |
| 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:16.04) | = 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 | No fix listed |
| ubuntu/pjproject(Ubuntu:Pro:18.04) | All versions | No fix listed |
| 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/pjproject(Ubuntu:Pro:18.04) | = 2.7.2~dfsg-1ubuntu0.1~esm1 | 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 |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| 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 |
| alpine/pjproject(Alpine:v3.18) | < 2.13-r0 | 2.13-r0 |
| alpine/pjproject(Alpine:v3.19) | < 2.13-r0 | 2.13-r0 |
| alpine/pjproject(Alpine:v3.20) | < 2.13-r0 | 2.13-r0 |
| alpine/pjproject(Alpine:v3.21) | < 2.13-r0 | 2.13-r0 |
| alpine/pjproject(Alpine:v3.22) | < 2.13-r0 | 2.13-r0 |
| alpine/pjproject(Alpine:v3.23) | < 2.13-r0 | 2.13-r0 |
| alpine/pjproject(Alpine:v3.24) | < 2.13-r0 | 2.13-r0 |
References
- Debian Security Tracker CVE-2022-31031 vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking patch third-party-advisory
- GLSA-202210-37 third-party-advisory vendor-advisory
- [debian-lts-announce] 20230222 [SECURITY] [DLA 3335-1] asterisk security update mailing-list
- DSA-5358 third-party-advisory vendor-advisory
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update mailing-list
- lists.debian.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking