Description
Speex (libspeex) through 1.2.1 contains an out-of-bounds write vulnerability in speex_bits_read_whole_bytes() in libspeex/bits.c that mishandles length truncation for non-owned SpeexBits buffers. Attackers can stream crafted Speex data into buffers set up with speex_bits_init_buffer() or speex_bits_set_bit_buffer() to corrupt heap or stack memory and crash applications.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| xiph | speex | ≤ 1.2.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | speex | No fix yet | — |
| Debian 13 | speex | No fix yet | — |
| Debian 12 | speex | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | speex | No fix yet | — |
| Ubuntu 26.04 LTS | speex | No fix yet | — |
| Ubuntu 24.04 LTS | speex | No fix yet | — |
| Ubuntu 22.04 LTS | speex | No fix yet | — |
| Ubuntu 20.04 LTS | speex | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | speex | No fix yet | — |
| Ubuntu Pro 16.04 LTS | speex | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | speex | 1.1.999_1.2rc1-24.6.1 | SUSE-SU-2026:5225-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | speex | 1.2.1-3.1 | openSUSE-SU-2026:12336-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | speex +2 | 1.2.0-8.amzn2023.0.3 | ALAS2023-2026-3440 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | speex | No fix yet | — |
Advisories 3
- SUSE-SU-2026:5225-1 Security update for speex SUSE / openSUSE Security Updates · Nov 13, 2026
- ALAS2023-2026-3440 Moderate: speex security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 12, 2026
- openSUSE-SU-2026:12336-1 libspeex1-1.2.1-3.1 on GA media SUSE / openSUSE Security Updates · Oct 29, 2026
References
- GitHub Issue #42 issue-tracking
- https://github.com/xiph/speex product
- https://github.com/xiph/speex/blob/Speex-1.2.1/libspeex/bits.c#L177 technical-description
- https://hackmd.io/@haindpwn/speex-bits-read-whole-bytes-oob-write third-party-advisory
- https://gitlab.xiph.org/xiph/speex/-/merge_requests/32 patch
- VulnCheck Advisory: Speex through 1.2.1 Out-of-Bounds Write via speex_bits_read_whole_bytes third-party-advisory