
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-4156 is an out-of-bounds read vulnerability discovered in libsndfile's FLAC codec functionality. The vulnerability was disclosed on March 23, 2022, affecting libsndfile versions prior to 1.1.0. This security flaw impacts applications linked with libsndfile that process FLAC audio files (NVD, Ubuntu).
The vulnerability exists in the flac_buffer_copy() function within src/flac.c. The issue occurs when frame->header.blocksize is set to a value greater than the size of 'buffer', and since 'buffer' is indexed by pflac->bufferpos, the loop does not terminate before causing an out-of-bounds read. The vulnerability has been assigned a CVSS v3.1 base score of 7.1 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H (NVD, Red Hat).
When exploited, this vulnerability could lead to a crash through a segmentation fault or potentially leak sensitive memory information that could be used for further exploitation. The impact is primarily focused on denial of service, though there is potential for information disclosure (NVD, Ubuntu).
The vulnerability has been fixed in libsndfile version 1.1.0 and later releases. Various Linux distributions have also released security updates to address this issue, including Ubuntu (versions 22.04, 20.04, 18.04, and 14.04), Debian (versions 9 and 10), and Gentoo. Users are advised to upgrade to the patched versions (Debian Advisory, Gentoo Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."