Bug 2092772 (CVE-2022-31001)

Summary: CVE-2022-31001 sofia-sip: out-of-bound read in sip_method_d() in sip_parser.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:
An out-of-bound read flaw was found in sofia-sip's sip_method_d() function in sip_parser.c. An attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. A crash is caused by #define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0), this will make n bigger and trigger out-of-bound access when IS_NON_WS(s[n]).
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-02 12:31:26 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: 2092773    
Bug Blocks:    

Description TEJ RATHI 2022-06-02 08:38:34 UTC
Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by `#define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0)`, which will make `n` bigger and trigger out-of-bound access when `IS_NON_WS(s[n])`. Version 1.13.8 contains a patch for this issue.

https://github.com/freeswitch/sofia-sip/commit/a99804b336d0e16d26ab7119d56184d2d7110a36
https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-79jq-hh82-cv9g

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

Affects: fedora-all [bug 2092773]

Comment 2 Product Security DevOps Team 2022-06-02 12:31:24 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.