cve.bz

CVE-2021-4156 Out-of-bounds Read

7.1 highExploit referenceEPSS 1.8%Fix available

High (7.1). EPSS 1.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4156 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4156?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4156?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4156 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libsndfile_project:libsndfile1.1.10
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libsndfile1.0.27-3+deb9u3DLA-3058-1
Debian10libsndfile1.0.28-6+deb10u2DLA-3126-1
Debian11libsndfile1.0.31-2+deb11u2DLA-4402-1
Debian12, 13, 14libsndfile1.1.0-1DEBIAN-CVE-2021-4156
Ubuntu20.04:LTSlibsndfile1.0.28-7ubuntu0.3UBUNTU-CVE-2021-4156 USN-7273-1
Ubuntu22.04:LTSlibsndfile1.0.31-2ubuntu0.2UBUNTU-CVE-2021-4156 USN-7273-1
UbuntuPro:14.04:LTSlibsndfile1.0.25-7ubuntu2.2+esm4UBUNTU-CVE-2021-4156 USN-7273-1
UbuntuPro:16.04:LTSlibsndfile1.0.25-10ubuntu0.16.04.3+esm2UBUNTU-CVE-2021-4156 USN-5409-1
UbuntuPro:18.04:LTSlibsndfile1.0.28-4ubuntu0.18.04.2+esm2UBUNTU-CVE-2021-4156 USN-7273-1
Red Hatenterprise_linux:8::appstreamlibsndfile, libsndfile-debuginfo, libsndfile-debugsource and 1 more0:1.0.28-12.el8RHSA-2022:1968
Red Hatenterprise_linux:8::crblibsndfile-devel, libsndfile-debuginfo, libsndfile-debugsource and 1 more0:1.0.28-12.el8RHSA-2022:1968
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 18 morelibsndfile1.0.28-5.15.1SUSE-SU-2022:0052-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morelibsndfile1.0.25-36.26.1SUSE-SU-2022:0034-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSlibsndfile1.0.20-2.19.18.1SUSE-SU-2022:14872-1
SUSELinux Enterprise Real Time 15 SP2libsndfile1.0.28-5.15.1SUSE-SU-2022:0052-2
openSUSELeap 15.3libsndfile, libsndfile-progs1.0.28-5.15.1openSUSE-SU-2022:0052-1
openSUSETumbleweedlibsndfile1.0.31-3.1openSUSE-SU-2024:11705-1
AlmaLinux8libsndfile, libsndfile-devel1.0.28-12.el8ALSA-2022:1968
Rocky Linux8libsndfile0:1.0.28-12.el8RLSA-2022:1968

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw is out of support scope for libsndfile shipped with Red Hat Enterprise Linux 6 and 7.

Red Hat's mitigation

One way to mitigate the risk of this flaw is to not open untrusted sound files using libsndfile or other linked programs.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libsndfile-0:1.0.28-12.el8Fixed 2022-05-10RHSA-2022:1968
Red Hat Enterprise Linux 6libsndfileOut of support scope
Red Hat Enterprise Linux 7libsndfileOut of support scope
Red Hat Enterprise Linux 9libsndfileNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4156.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON