CVE-2021-4156: Buffer Overflow

Published Nov 30, 2021
·
Updated

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.

Other sources

The vulnerability can lead to heap-based buffer overflow via a crafted sound file, and potentially control heap data by forge buffer content to perform heap exploitation.

Upstream Reference:

https://github.com/libsndfile/libsndfile/issues/731

Red Hat

Affected Software

5 affected componentsFixes available
redhat/libsndfile<1.1.0
1.1.0
debian/libsndfile<=1.0.31-2
1.2.0-11.2.2-2
Libsndfile Project Libsndfile=1.1.10
Debian Debian Linux=9.0
Debian Debian Linux=10.0

Event History

Mar 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 19, 2025
Data Sourced
via Ubuntu·12:36 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·12:37 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-4156?

CVE-2021-4156 has been classified with a severity that may allow attackers to exploit out-of-bounds read vulnerabilities in applications using the FLAC codec from libsndfile.

2

How do I fix CVE-2021-4156?

To fix CVE-2021-4156, you should upgrade libsndfile to version 1.1.10 or later.

3

Which versions of libsndfile are affected by CVE-2021-4156?

CVE-2021-4156 affects libsndfile versions prior to 1.1.10.

4

What kind of attack can be performed using CVE-2021-4156?

An attacker can exploit CVE-2021-4156 by tricking a user into opening a specially crafted file that triggers an out-of-bounds read.

5

On which platforms is CVE-2021-4156 a concern?

CVE-2021-4156 is a concern on platforms that use affected versions of libsndfile, including certain Debian distributions and Red Hat.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203