Heap-based buffer overflow in libsndfile - CVE-2021-3246

 

Heap-based buffer overflow in libsndfile - CVE-2021-3246

Published: August 1, 2021 / Updated: March 28, 2022


Vulnerability identifier: #VU55455
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-3246
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error msadpcm_decode_block() function of libsndfile. A remote attacker can trick the victim to open a specially crafted WAV file, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libsndfile
Gentoo Linux
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE CaaS Platform
SUSE Enterprise Storage
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Server
CentOS
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Anolis OS
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat CodeReady Linux Builder for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - AUS
SUSE OpenStack Cloud
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Server
Ubuntu
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
openEuler
Fedora
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
SUSE Linux Enterprise Module for Packagehub Subpackages
libsndfile (Debian package)
libsndfile1 (Ubuntu package)
sndfile-programs (Ubuntu package)
libsndfile
libsndfile-32bit
libsndfile-debuginfo
libsndfile-debugsource
libsndfile-debuginfo-32bit
libsndfile (Red Hat package)
libsndfile1-32bit-debuginfo
libsndfile1-32bit
libsndfile-devel
libsndfile1
libsndfile1-debuginfo
libsndfile-utils-help
libsndfile-utils
media-libs/libsndfile

How to mitigate CVE-2021-3246

Install updates from vendor's website.

libsndfile - update to 1.1.0
libsndfile (Debian package) - update to 1.0.28-6+deb10u1
libsndfile1 (Ubuntu package) - addressed in versions 1.0.25-7ubuntu2.2+esm2, 1.0.25-10ubuntu0.16.04.3+esm1, 1.0.28-4ubuntu0.18.04.2, 1.0.28-7ubuntu0.1, 1.0.31-1ubuntu1.1
sndfile-programs (Ubuntu package) - addressed in versions 1.0.25-7ubuntu2.2+esm2, 1.0.25-10ubuntu0.16.04.3+esm1, 1.0.28-4ubuntu0.18.04.2, 1.0.28-7ubuntu0.1, 1.0.31-1ubuntu1.1
libsndfile - update to 1.0.20-2.19.15.1
libsndfile-32bit - update to 1.0.20-2.19.15.1
libsndfile-debuginfo - update to 1.0.20-2.19.15.1
libsndfile-debugsource - addressed in versions 1.0.20-2.19.15.1, 1.0.28-5.12.1
libsndfile-debuginfo-32bit - update to 1.0.20-2.19.15.1
libsndfile (Red Hat package) - addressed in versions 1.0.25-12.el7_9.1, 1.0.28-8.el8_1.1, 1.0.28-10.el8_2.1, 1.0.28-10.el8_4.1
libsndfile1-32bit-debuginfo - update to 1.0.28-5.12.1
libsndfile1-32bit - update to 1.0.28-5.12.1
libsndfile-devel - update to 1.0.28-5.12.1
libsndfile1 - update to 1.0.28-5.12.1
libsndfile1-debuginfo - update to 1.0.28-5.12.1
libsndfile - update to 1.0.28-10
libsndfile-utils-help - update to 1.0.28-19
libsndfile-debugsource - update to 1.0.28-19
libsndfile-utils - update to 1.0.28-19
libsndfile-debuginfo - update to 1.0.28-19
libsndfile - update to 1.0.28-19
libsndfile-devel - update to 1.0.28-19
libsndfile - addressed in versions 1.0.31-5.fc33.fc33, 1.0.31-5.fc34.fc34
media-libs/libsndfile - update to 1.1.0

External References

Related Security Bulletins