Debian Patches

Status for speex/1.2.1-4

Patch Description Author Forwarded Bugs Origin Last update
0001-CVE-2026-116741.patch bits: fix OOB write in read_whole_bytes for non-owned buffers
Fixes https://github.com/xiph/speex/issues/42

Reported by HaiND (Nguyen Dinh Hai), Post and Telecommunication Institute of Technology, github.com/Haind03.
Tristan Matthews <tmatth@videolan.org> no debian 2026-10-22
0002-bits-preserve-full-buffer.patch bits: preserve buffered data when an append cannot fit
The truncation calculation can return -1 when the buffer is already full.
That drops one byte from nbBits and shifts a negative value. Clamp the
append count to zero in both the caller-owned and realloc-failure paths.
Boyuan Yang <byang@debian.org> no debian 2026-11-13
0003-bits-avoid-negative-left-shift.patch Fix issue #25 (Undefined behavior / Arithmetic overflow in bits.c) Dutchman101 <mcak105@outlook.com> no 2024-06-21
0004-skeleton-reserve-terminator.patch skeleton: allocate enough for NULL terminator
Fixes https://github.com/xiph/speex/issues/32
Tristan Matthews <tmatth@videolan.org> no 2025-06-14
0005-nb-clamp-vbr-quality.patch nb_celp: add range checking to SET_VBR_QUALITY
This matches what is already being done for SET_QUALITY.

Fixes https://github.com/xiph/speex/issues/33
Tristan Matthews <tmatth@videolan.org> no 2025-06-17
0006-sb-clamp-vbr-quality.patch sb_celp: clamp vbr_quality to [0,10] like nb_celp
The narrowband encoder (nb_celp.c) clamps SPEEX_SET_VBR_QUALITY to
[0,10] after the fix for issue #33, but the wideband encoder
(sb_celp.c) was missed. An unclamped st->vbr_quality is used as an
index into mode->vbr_thresh[modeid][v1] (11 rows), causing an OOB
read with quality > 10.
kalt2212 <adrimg3196@gmail.com> no 2026-10-08

All known versions for source package 'speex'

Links