Bug 1659627 (CVE-2018-19661) - CVE-2018-19661 libsndfile: buffer over-read in the function i2ulaw_array in ulaw.c
Summary: CVE-2018-19661 libsndfile: buffer over-read in the function i2ulaw_array in u...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-19661
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1659628 1673083 1673084
Blocks: 1659634
TreeView+ depends on / blocked
 
Reported: 2018-12-14 20:37 UTC by Laura Pardo
Modified: 2021-10-27 03:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-27 03:19:10 UTC
Embargoed:


Attachments (Terms of Use)

Description Laura Pardo 2018-12-14 20:37:15 UTC
An issue was discovered in libsndfile 1.0.28. There is a buffer over-read in the function i2ulaw_array in ulaw.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:37:35 UTC
Created libsndfile tracking bugs for this issue:

Affects: fedora-all [bug 1659628]

Comment 3 Riccardo Schirone 2019-02-06 16:04:10 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.


Note You need to log in before you can comment on or make changes to this bug.