Bug 2531076

Summary: CVE-2026-57159 asterisk: SDP parser out-of-bounds write in remote payload-type map maintenance [fedora-all]
Product: [Fedora] Fedora Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: asteriskAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: bennie.joubert, jsmith.fedora, lemenkov
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["7555d253-04bd-4216-bec0-919fdab3bde1"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-09-11 19:56:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2528774    

Description Guilherme de Almeida Suckevicz 2026-09-09 17:24:59 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

PJSIP is a free and open source multimedia communication library written in C. Prior to commit 673b978, a remote out-of-bounds read and write can occur in the SDP negotiator when the remote payload-type map maintenance feature is enabled. assign_pt_and_update_map() in pjmedia/src/pjmedia/sdp_neg.c uses payload-type numbers taken from a remote SDP offer or answer to index fixed-size internal tables without sufficient bounds validation, so a crafted remote SDP can cause memory access outside those tables. The practical impact is memory corruption and denial of service; code execution is not demonstrated. This path is only reached when PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP is enabled. The default is disabled, so default builds are not affected; the feature is an interoperability option that integrating products may enable. This issue has been patched via commit 673b978.

Comment 1 Peter Lemenkov 2026-09-11 19:48:44 UTC
Not applicable to Asterisk as built here.

This is an out-of-bounds read and write in the SDP negotiator, assign_pt_and_update_map() in pjmedia/src/pjmedia/sdp_neg.c. The upstream advisory states that this path is only reached when PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP is enabled, and that the default is disabled so default builds are not affected.

Asterisk's bundled pjproject does not define PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP in third-party/pjproject/patches/config_site.h, so it is left at its default of disabled.

Fixed upstream in pjproject commit 673b978.

Comment 2 Peter Lemenkov 2026-09-11 19:56:48 UTC
Closing as NOTABUG per the analysis above — the vulnerable path is gated behind PJMEDIA_SDP_NEG_MAINTAIN_REMOTE_PT_MAP, which Asterisk leaves at its default of disabled.

As with the other pjproject CVEs in this batch, this is a reachability determination rather than the code being absent: the affected function is still compiled into the bundled library. It would need revisiting if Asterisk enabled that option.