Bug 2092770 (CVE-2022-31003)

Summary: CVE-2022-31003 sofia-sip: heap-buffer-overflow in sdp_parse() in sdp_parse.c
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: sorensentor
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sofia-sip 1.13.8 Doc Type: If docs needed, set a value
Doc Text:
A heap buffer overflow flaw was found in sofia-sip's sdp_parse() function in sdp_parse.c. While parsing each line of a sdp message, `rest = record + 2` will access the memory behind `\0` and cause an out-of-bounds write. An attacker can send a message with evil sdp to FreeSWITCH, causing a crash or more serious consequence, such as remote code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-02 12:29:46 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: 2092775    
Bug Blocks:    

Description TEJ RATHI 2022-06-02 08:38:29 UTC
Prior to version 1.13.8, when parsing each line of a sdp message, `rest = record + 2` will access the memory behind `\0` and cause an out-of-bounds write. An attacker can send a message with evil sdp to FreeSWITCH, causing a crash or more serious consequence, such as remote code execution. Version 1.13.8 contains a patch for this issue.

https://github.com/freeswitch/sofia-sip/commit/907f2ac0ee504c93ebfefd676b4632a3575908c9
https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8w5j-6g2j-pxcp

Comment 1 TEJ RATHI 2022-06-02 08:39:01 UTC
Created sofia-sip tracking bugs for this issue:

Affects: fedora-all [bug 2092775]

Comment 2 Product Security DevOps Team 2022-06-02 12:29:45 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.