Bug 2092772 (CVE-2022-31001) - CVE-2022-31001 sofia-sip: out-of-bound read in sip_method_d() in sip_parser.c
Summary: CVE-2022-31001 sofia-sip: out-of-bound read in sip_method_d() in sip_parser.c
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2022-31001
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2092773
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-02 08:38 UTC by TEJ RATHI
Modified: 2022-06-02 12:31 UTC (History)
1 user (show)

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]).
Clone Of:
Environment:
Last Closed: 2022-06-02 12:31:26 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.