Logo
componentlibsndfile1
Name
libsndfile1
Version
1.2.2
Type
library
Description
Audio format Conversion library
Licenses
LGPL-2.1-only
PURL
-
CPE
cpe:2.3:*:*:libsndfile:1.2.2:*:*:*:*:*:*:*

Other Versions#


Project
Branch
Version
kirkstone
1.0.31
scarthgap
1.2.2

Patches#


#
Title
Author
Resolve
1
Update sndfile-convert.c
Sisyphus-wang <43361974+Sisyphus-wang@users.noreply.github.com>
CVE-2025-56226
2
src/ogg: better error checking for vorbis. Fixes #1035
Arthur Taylor <art@ified.ca>
CVE-2024-50612
3
Disable opus library
Alexander Kanavin <alex@linutronix.de>
4
Update mpeg_l3_encode.c
Sisyphus-wang <43361974+Sisyphus-wang@users.noreply.github.com>
CVE-2025-56226
5
Include <stdbool.h> instead of redefining `bool`, `true` and
Fabian Greffrath <fabian@greffrath.com>
6
mat4/mat5: fix int overflow in dataend calculation
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065

Vulnerabilities#


Name
Analysis
Description
Exploitable
An issue was discovered in libsndfile 1.2.2 IMA ADPCM codec. The AIFF code path (line 241) was fixed with (sf_count_t) cast, but the WAV code path (line 235) and close path (line 167) were not. When samplesperblock (int) * blocks (int) exceeds INT_MAX, the 32-bit multiplication overflows before being assigned to sf.frames (sf_count_t/int64). With samplesperblock=50000 and blocks=50000, the product 2500000000 overflows to -1794967296. This causes incorrect frame count leading to heap buffer overflow or denial of service. Both values come from the WAV file header and are attacker-controlled. This issue was discovered after an incomplete fix for CVE-2022-33065.
Patched
Libsndfile <=1.2.2 contains a memory leak vulnerability in the mpeg_l3_encoder_init() function within the mpeg_l3_encode.c file.
Exploitable
A buffer overflow vulnerability exists in libsndfile version 1.2.2 and potentially earlier versions when processing malformed IRCAM audio files. The vulnerability occurs in the ircam_read_header function at src/ircam.c:164 during sample rate processing, leading to memory corruption and potential code execution.
Exploitable
libsndfile through 1.2.2 has a reachable assertion, that may lead to application exit, in mpeg_l3_encode.c mpeg_l3_encoder_close.
Patched
libsndfile through 1.2.2 has an ogg_vorbis.c vorbis_analysis_wrote out-of-bounds read.
Patched
Multiple signed integers overflow in function au_read_header in src/au.c and in functions mat4_open and mat4_read_header in src/mat4.c in Libsndfile, allows an attacker to cause Denial of Service or other unspecified impacts.