Potential heap buffer overflow when parsing DNS packets in PJSIP
Summary
Potential heap buffer overflow when parsing DNS packets in PJSIP
Original description
The description as published by the source.
PJSIP is a free and open source multimedia communication library written in C. A buffer overflow vulnerability in versions 2.12 and prior affects applications that use PJSIP DNS resolution. It doesn't affect PJSIP users who utilize an external resolver. This vulnerability is related to CVE-2023-27585. The difference is that this issue is in parsing the query record parse_rr(), while the issue in CVE-2023-27585 is in parse_query(). A patch is available in the master branch of the pjsip/pjproject GitHub repository. A workaround is to disable DNS resolution in PJSIP config (by setting nameserver_count to zero) or use an external resolver instead.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Alpine Linux ALPINE-CVE-2022-24793 pjproject Fixed in: 2.12.1-r0
- Debian DEBIAN-CVE-2022-24793 asterisk Fixed in: 1:16.28.0~dfsg-0+deb11u1
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- advisory security.gentoo.org
- advisory debian.org
- patch github.com
- web lists.debian.org
- web lists.debian.org
- web lists.debian.org
- web lists.debian.org