Description
stb_vorbis through 1.22 contains a heap buffer overflow in start_decoder() where the codebook multiplicands allocation size is truncated from size_t to int. Attackers can craft a malicious Ogg Vorbis file with large entries and dimensions values to trigger out-of-bounds writes, causing process crashes or heap corruption.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nothings | stb_vorbis | ≤ 1.22 | — |
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 | libstb | No fix yet | — |
| Debian 13 | libstb | No fix yet | — |
| Debian 12 | libstb | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libstb | No fix yet | — |
| Ubuntu 26.04 LTS | libstb | No fix yet | — |
| Ubuntu 24.04 LTS | libstb | No fix yet | — |
| Ubuntu 22.04 LTS | libstb | No fix yet | — |
| Ubuntu 20.04 LTS | libstb | No fix yet | — |
References
- GitHub Issue #1928 issue-tracking
- GitHub Issue #1933 issue-tracking
- GitHub Issue #1947 issue-tracking
- Vulnerable multiplicands allocation (stb_vorbis.c:3878-3880) technical-description
- setup_malloc int size parameter (stb_vorbis.c:950) technical-description
- https://github.com/nothings/stb product
- VulnCheck Advisory: stb_vorbis through 1.22 heap buffer overflow via codebook multiplicands third-party-advisory