Bug 1911324 (CVE-2020-35738)

Summary: CVE-2020-35738 wavpack: out-of-bounds write in WavpackPackSamples function in pack_utils.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact: FrantiĊĦek Hrdina <fhrdina>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: lemenkov, rh-spice-bugs, tkorbar, valtri
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: wavpack 5.4.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-02 18:23:14 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: 1911325, 1911326, 1911383, 1911384, 1911385    
Bug Blocks: 1911327    

Description Guilherme de Almeida Suckevicz 2020-12-28 18:05:09 UTC
WavPack 5.3.0 has an out-of-bounds write in WavpackPackSamples in pack_utils.c because of an integer overflow in a malloc argument. NOTE: some third-parties claim that there are later "unofficial" releases through 5.3.2, which are also affected.

Reference:
https://github.com/dbry/WavPack/issues/91

Comment 1 Guilherme de Almeida Suckevicz 2020-12-28 18:05:28 UTC
Created mingw-wavpack tracking bugs for this issue:

Affects: fedora-all [bug 1911326]


Created wavpack tracking bugs for this issue:

Affects: fedora-all [bug 1911325]

Comment 4 Todd Cullum 2020-12-29 02:53:19 UTC
Flaw summary:

An attacker who is able to provide a crafted input file to be processed by wavpack audio compressor (e.g. by social engineering a user to attempt to compress a malicious file) could cause a heap buffer overflow -> out-of-bounds write due to unsigned integer wrap in a call to malloc(). The highest impact of the flaw would be to application availability or data integrity.

Comment 6 Todd Cullum 2020-12-29 02:55:25 UTC
Mitigation:

If using the wavpack utility, this flaw can be mitigated by not running the program on untrusted input files or files from untrusted sources.

Comment 8 Todd Cullum 2021-01-13 00:39:41 UTC
External References:

https://github.com/dbry/WavPack/releases/tag/5.4.0