Bug 1277941

Summary: CVE-2014-9756 libsndfile: Divide-by-zero in psf_fwrite
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: andreas, mhlavink
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-06 12:03:05 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: 1178842, 1178843, 1277942, 1277943    
Bug Blocks: 1277910    

Description Adam Mariš 2015-11-04 11:52:02 UTC
A division by zero occurs in aiff.c in aiff_rewrite_header. headIndex is initialized to zero and if all the conditions for modifying it fail, it will be used in division in psf_fwrite, resulting in crash.

Upstream patch:

https://github.com/erikd/libsndfile/commit/725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6#diff-4b3e9c7e86f66ff8285771969745e133

CVE assignment:

http://seclists.org/oss-sec/2015/q4/218

Comment 1 Adam Mariš 2015-11-04 11:52:28 UTC
Created libsndfile tracking bugs for this issue:

Affects: fedora-all [bug 1277942]
Affects: epel-5 [bug 1277943]

Comment 2 Stefan Cornelius 2015-11-06 12:03:05 UTC

*** This bug has been marked as a duplicate of bug 1177254 ***