Bug 1737764 (CVE-2019-13590)

Summary: CVE-2019-13590 sox: integer overflow in libsox.a leading to a NULL pointer dereference
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: felix, hhorak, hobbes1069, jkucera, tsmetana
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:11:11 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: 1737765, 1791805    
Bug Blocks: 1737766    

Description Marian Rehak 2019-08-06 07:55:45 UTC
An issue was discovered in libsox.a in SoX 14.4.2. In sox-fmt.h (startread function), there is an integer overflow on the result of integer addition (wraparound to 0) fed into the lsx_calloc macro that wraps malloc. When a NULL pointer is returned, it is used without a prior check that it is a valid pointer, leading to a NULL pointer dereference on lsx_readbuf in formats_i.c.

Upstream Issue:

https://sourceforge.net/p/sox/bugs/325/

Comment 1 Marian Rehak 2019-08-06 07:56:24 UTC
Created sox tracking bugs for this issue:

Affects: fedora-all [bug 1737765]

Comment 3 Stefan Cornelius 2020-01-16 12:14:12 UTC
Statement:

This is only an issue when using the 32bit version of the library.