CVE-2021-4156
libsndfile: heap out-of-bounds read in src/flac.c in flac_buffer_copy
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 13, 2021
Updated · December 12, 2025
Description
An out-of-bounds read flaw was found in libsndfile's FLAC codec functionality. An attacker who is able to submit a specially crafted file (via tricking a user to open or otherwise) to an application linked with libsndfile and using the FLAC codec, could trigger an out-of-bounds read that would most likely cause a crash but could potentially leak memory information that could be used in further exploitation of other flaws.
Statement
This flaw is out of support scope for libsndfile shipped with Red Hat Enterprise Linux 6 and 7.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
One way to mitigate the risk of this flaw is to not open untrusted sound files using libsndfile or other linked programs.
CVSS / CWE
CVSS 3.1 · 7.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
CWE-125 · Out-of-bounds Read