Bug 1886044 (CVE-2020-25863)

Summary: CVE-2020-25863 wireshark: MIME multipart dissector crash (wnpa-sec-2020-11)
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alekcejk, denis, huzaifas, lemenkov, mruprich, msehnout, peter, rvokal, sergey.avseyev
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: wireshark 3.2.7, wireshark 3.0.14 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-29 20:50:36 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: 1886045, 1886199    
Bug Blocks: 1886053    

Description Guilherme de Almeida Suckevicz 2020-10-07 14:28:06 UTC
In Wireshark 3.2.0 to 3.2.6, 3.0.0 to 3.0.13, and 2.6.0 to 2.6.20, the MIME Multipart dissector could crash. This was addressed in epan/dissectors/packet-multipart.c by correcting the deallocation of invalid MIME parts.

References:
https://www.wireshark.org/security/wnpa-sec-2020-11.html
https://gitlab.com/wireshark/wireshark/-/issues/16741

Upstream patch:
https://gitlab.com/wireshark/wireshark/-/commit/5803c7b87b3414cdb8bf502af50bb406ca774482

Comment 1 Guilherme de Almeida Suckevicz 2020-10-07 14:28:32 UTC
Created wireshark tracking bugs for this issue:

Affects: fedora-all [bug 1886045]

Comment 4 Todd Cullum 2020-10-07 22:01:19 UTC
Flaw summary:

get_multipart_info() in epan/dissectors/packet-multipart.c attempts to free start_boundary even if it points to an invalid address. The patch sets start_boundary to NULL in this case rather than attempting to free it.