Vulnerability · Published Feb 22, 2022 · Assigned by GitHub_M
CVE-2022-23608Use after free in PJSIP
High 8.1
In plain English
A high-severity use-after-free in pjproject from pjsip. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.0% (higher than 91% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 up to and including 2.11.1 when in a dialog set (or forking) scenario, a hash key shared by multiple UAC dialogs can potentially be prematurely freed when one of the dialogs is destroyed . The issue may cause a dialog set to be registered in the hash table multiple times (with different hash keys) leading to undefined behavior such as dialog list collision which eventually leading to endless loop. A patch is available in commit db3235953baa56d2fb0e276ca510fefca751643f which will be included in the next release. There are no known workarounds for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | pjproject | 2.12-r0 | ALPINE-CVE-2022-23608 |
| Alpine:v3.21 | pjproject | 2.12-r0 | ALPINE-CVE-2022-23608 |
| Alpine:v3.22 | pjproject | 2.12-r0 | ALPINE-CVE-2022-23608 |
| Alpine:v3.23 | pjproject | 2.12-r0 | ALPINE-CVE-2022-23608 |
| Alpine:v3.24 | pjproject | 2.12-r0 | ALPINE-CVE-2022-23608 |
| Debian:14 | asterisk | 1:18.10.1~dfsg+~cs6.10.40431411-1 | DEBIAN-CVE-2022-23608 |
| Debian:12 | ring | 20230206.0~ds1-1 | DEBIAN-CVE-2022-23608 |
| Ubuntu:22.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2022-23608 |
| Ubuntu:24.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2022-23608 |
| Ubuntu:25.10 | asterisk | no fix listed | UBUNTU-CVE-2022-23608 |
| Ubuntu:26.04:LTS | asterisk | no fix listed | UBUNTU-CVE-2022-23608 |
| Ubuntu:26.10 | asterisk | no fix listed | UBUNTU-CVE-2022-23608 |
Affected products (as reported)
Weakness: CWE-416 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/pjsip/pjproject/security/advisories/GHSA-ffff-m5fm-qm62
- https://github.com/pjsip/pjproject/commit/db3235953baa56d2fb0e276ca510fefca751643f
- 20220304 AST-2022-005: pjproject: undefined behavior after freeing a dialog set mailing-list
- http://packetstormsecurity.com/files/166226/Asterisk-Project-Security-Advisory-AST-2022-005.html
- [debian-lts-announce] 20220328 [SECURITY] [DLA 2962-1] pjproject security update mailing-list
- [debian-lts-announce] 20220331 [SECURITY] [DLA 2962-2] pjproject regression update mailing-list
- GLSA-202210-37 vendor-advisory
- [debian-lts-announce] 20221117 [SECURITY] [DLA 3194-1] asterisk security update mailing-list
- DSA-5285 vendor-advisory
- [debian-lts-announce] 20230829 [SECURITY] [DLA 3549-1] ring security update mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00030.html