Vulnerability · Published Mar 23, 2022 · Assigned by redhat
CVE-2021-4156
High 7.1
In plain English
A high-severity out-of-bounds read in libsndfile. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libsndfile | 1.0.28-12.el8 | ALSA-2022:1968 |
| AlmaLinux:8 | libsndfile-devel | 1.0.28-12.el8 | ALSA-2022:1968 |
| Debian:12 | libsndfile | 1.1.0-1 | DEBIAN-CVE-2021-4156 |
| Debian:13 | libsndfile | 1.1.0-1 | DEBIAN-CVE-2021-4156 |
| Debian:14 | libsndfile | 1.1.0-1 | DEBIAN-CVE-2021-4156 |
| Rocky Linux:8 | libsndfile | 0:1.0.28-12.el8 | RLSA-2022:1968 |
| Ubuntu:22.04:LTS | libsndfile | 1.0.31-2ubuntu0.2 | USN-7273-1 |
| Ubuntu:22.04:LTS | libsndfile | 1.0.31-2ubuntu0.2 | UBUNTU-CVE-2021-4156 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | libsndfile | libsndfile 1.1.0 |
Weakness: CWE-125
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2027690
- https://github.com/libsndfile/libsndfile/pull/732/commits/4c30646abf7834e406f7e2429c70bc254e18beab
- https://github.com/libsndfile/libsndfile/issues/731
- [debian-lts-announce] 20220628 [SECURITY] [DLA 3058-1] libsndfile security update mailing-list
- [debian-lts-announce] 20220929 [SECURITY] [DLA 3126-1] libsndfile security update mailing-list
- GLSA-202309-11 vendor-advisory
- https://lists.debian.org/debian-lts-announce/2025/12/msg00013.html