CVE-2021-4156

libsndfile: heap out-of-bounds read in src/flac.c in flac_buffer_copy

Published Mar 23, 2022 CVSS 3.1 · 7.1 High EPSS 1.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3058-1 libsndfile security update
Debian DLA Debian DLA DLA-3126-1 libsndfile security update
Debian DLA Debian DLA DLA-4402-1 libsndfile security update
EUVD EUVD EUVD-2021-34024 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.
Ubuntu USN Ubuntu USN USN-5409-1 libsndfile vulnerability
Ubuntu USN Ubuntu USN USN-7273-1 libsndfile vulnerabilities
Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Dec 11, 2025, 12:06 PM
Reserved
Dec 22, 2021, 12:00 AM
Status
Modified
Published
Mar 23, 2022, 8:15 PM
Modified
Jun 17, 2026, 4:19 AM
Severity
Moderate
Public date
Apr 13, 2021, 12:00 AM