CVEfocus › CVE database › CVE-2021-4156

CVE-2021-4156

EPSS 1.8% (higher than 78% of CVEs)Published 2022-03-23Updated 2025-12-11Assigner: redhat

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.

CWE-125

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
3Fix pending
5Will not fix
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libsndfileNot affected
vulnerable_code_not_present
Ubuntu 22.04libsndfileFixed1.0.31-2ubuntu0.2UBUNTU-CVE-2021-4156
Ubuntu 20.04libsndfileFixed1.0.28-7ubuntu0.3UBUNTU-CVE-2021-4156
Ubuntu 18.04libsndfileFix pending1.0.28-4ubuntu0.18.04.2+esm2 (Ubuntu Pro)UBUNTU-CVE-2021-4156
Ubuntu 16.04libsndfileFix pending1.0.25-10ubuntu0.16.04.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2021-4156
Ubuntu 14.04libsndfileFix pending1.0.25-7ubuntu2.2+esm4 (Ubuntu Pro)UBUNTU-CVE-2021-4156
Debian 14libsndfileFixed1.1.0-1DEBIAN-CVE-2021-4156
Debian 13libsndfileFixed1.1.0-1DEBIAN-CVE-2021-4156
Debian 12libsndfileFixed1.1.0-1DEBIAN-CVE-2021-4156
Red Hat Enterprise Linux 9libsndfileNot affected
Red Hat Enterprise Linux 9libsndfile-develNot affected
Red Hat Enterprise Linux 9libsndfile-utilsNot affected
Red Hat Enterprise Linux 8libsndfileFixed0:1.0.28-12.el8RHSA-2022:1968
Red Hat Enterprise Linux 8libsndfile-develFixed0:1.0.28-12.el8RHSA-2022:1968
Red Hat Enterprise Linux 7libsndfileWill not fix
Out of support scope
Red Hat Enterprise Linux 7libsndfile-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7libsndfile-utilsWill not fix
Out of support scope
Red Hat Enterprise Linux 6libsndfileWill not fix
Out of support scope
Red Hat Enterprise Linux 6libsndfile-develWill not fix
Out of support scope
AlmaLinux 8libsndfileFixed1.0.28-12.el8ALSA-2022:1968
AlmaLinux 8libsndfile-develFixed1.0.28-12.el8ALSA-2022:1968
Rocky Linux 8libsndfileFixed0:1.0.28-12.el8RLSA-2022:1968

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.