Bug 1659631 (CVE-2018-19662)

Summary: CVE-2018-19662 libsndfile: buffer over-read in the function i2alaw_array in alaw.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: mhlavink
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: 2020-04-28 16:32:17 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: 1659632, 1673085, 1673086    
Bug Blocks: 1659634    

Description Laura Pardo 2018-12-14 20:40:43 UTC
An issue was discovered in libsndfile 1.0.28. There is a buffer over-read in the function i2alaw_array in alaw.c that will lead to a denial of service. 


References:
https://github.com/erikd/libsndfile/issues/429

Comment 1 Laura Pardo 2018-12-14 20:40:56 UTC
Created libsndfile tracking bugs for this issue:

Affects: fedora-all [bug 1659632]

Comment 2 Riccardo Schirone 2019-02-06 16:08:29 UTC
Functions i2ulaw_array() in ulaw.c and i2alaw_array() in alaw.c use an attacker-controlled value to index a global array, however when the value is negative they get the opposite, which is undefined behaviour in case the original value is INT_MIN. Thus those functions could access some elements outside the limits of the ulaw_encode/alaw_encode buffers.

Comment 7 errata-xmlrpc 2020-04-28 15:33:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1636 https://access.redhat.com/errata/RHSA-2020:1636

Comment 8 Product Security DevOps Team 2020-04-28 16:32:17 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-19662

Comment 9 errata-xmlrpc 2020-09-29 19:51:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:3922 https://access.redhat.com/errata/RHSA-2020:3922