Logo
componentlibsndfile
Name
libsndfile
Version
1.2.2
Type
library
Description
-
Licenses
LGPL-2.1+
PURL
-
CPE
cpe:2.3:a:libsndfile_project:libsndfile:1.2.2:-:*:*:*:*:*:*

Other Versions#


Project
Branch
Version
2025.02.x
1.2.2

Patches#


#
Title
Author
Resolve
1
mat4/mat5: fix int overflow in dataend calculation
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
2
au: avoid int overflow while calculating data_end
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
3
avr: fix int overflow in avr_read_header()
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
4
sds: fix int overflow warning in sample calculations
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
5
aiff: fix int overflow when counting header elements
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
6
ircam: fix int overflow in ircam_read_header()
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
7
mat4/mat5: fix int overflow when calculating blockwidth
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
8
common: fix int overflow in psf_binheader_readf()
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
9
nms_adpcm: fix int overflow in signal estimate
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
10
nms_adpcm: fix int overflow in sf.frames calc
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
11
pcm: fix int overflow in pcm_init()
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
12
rf64: fix int overflow in rf64_read_header()
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
13
ima_adpcm: fix int overflow in ima_reader_init()
Alex Stewart <alex.stewart@ni.com>
CVE-2022-33065
14
src/ogg: better error checking for vorbis. Fixes #1035
Arthur Taylor <art@ified.ca>
CVE-2024-50612
15
ALAC: Include config.h to avoid warnings
Marcel Telka <marcel@telka.sk>
16
Include <stdbool.h> instead of redefining `bool`, `true` and
Fabian Greffrath <fabian@greffrath.com>

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