CVE-2021-4156 Information disclosure in libsndfile

High 7.1 Published Updated

An out-of-bounds read in libsndfile's FLAC codec allows attackers to cause crashes or leak memory information via crafted files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-4156?

CVE-2021-4156 is a high-severity vulnerability in Debian Debian Linux, published on 23 Mar 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-125

Which versions are affected by CVE-2021-4156?

It affects 2 products.

Linux distribution packages (40)
libsndfile AlmaLinux:8All versions1.0.28-12.el8
libsndfile-devel AlmaLinux:8All versions1.0.28-12.el8
libsndfile Red Hat:enterprise_linux:8::appstreamAll versions0:1.0.28-12.el8
libsndfile-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.0.28-12.el8
libsndfile-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:1.0.28-12.el8
libsndfile-utils-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:1.0.28-12.el8
libsndfile-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:1.0.28-12.el8
libsndfile-debugsource Red Hat:enterprise_linux:8::crbAll versions0:1.0.28-12.el8
libsndfile-devel Red Hat:enterprise_linux:8::crbAll versions0:1.0.28-12.el8
libsndfile-utils-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:1.0.28-12.el8
libsndfile Rocky Linux:8All versions0:1.0.28-12.el8
libsndfile SUSE:Enterprise Storage 6All versions1.0.28-5.15.1
libsndfile SUSE:Enterprise Storage 7All versions1.0.28-5.15.1
libsndfile SUSE:HPE Helion OpenStack 8All versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Module for Package Hub 15 SP3All versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Point of Sale 11 SP3All versions1.0.20-2.19.18.1
libsndfile SUSE:Linux Enterprise Real Time 15 SP2All versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Server 11 SP4-LTSSAll versions1.0.20-2.19.18.1
libsndfile SUSE:Linux Enterprise Server 12 SP2-BCLAll versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise Server 12 SP3-BCLAll versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise Server 12 SP5All versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise Server 15 SP1-BCLAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Server 15 SP2-BCLAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Server 15-LTSSAll versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.0.25-36.26.1
libsndfile SUSE:Linux Enterprise Server for SAP Applications 15All versions1.0.28-5.15.1
libsndfile SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.0.28-5.15.1

Products include Debian Debian Linux, Libsndfile Project Libsndfile.

How do I fix CVE-2021-4156?

Apply the vendor's patch.

Is CVE-2021-4156 being exploited?

There is no known exploitation of CVE-2021-4156 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALSA-2022:1968, DEBIAN-CVE-2021-4156, DLA-3126-1, DLA-4402-1, GHSA-vvgm-gfhp-rj9x, OESA-2022-1680 and 10 more.

Is CVE-2021-4156 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free