Description
stb_image.h v2.27 was discovered to contain an heap-based use-after-free via the function stbi__jpeg_huff_decode.
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 | 0.0~git20230129.5736b15+ds-1 | — |
| Debian 13 | libstb | 0.0~git20230129.5736b15+ds-1 | — |
| Debian 12 | libstb | No fix yet | — |
| Debian 11 | libstb | 0.0~git20200713.b42009b+ds-1+deb11u1 | DLA-4493-1 |
| Debian 10 | libstb | 0.0~git20180212.15.e6afb9c-1+deb10u1 | DLA-3305-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libstb | No fix yet | — |
| Ubuntu 26.04 LTS | libstb | No fix yet | — |
| Ubuntu 25.10 | libstb | No fix yet | — |
| Ubuntu 24.04 LTS | libstb | No fix yet | — |
| Ubuntu 22.04 LTS | libstb | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libstb | No fix yet | — |
Advisories 2
- DLA-3305-1 libstb - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-4493-1 libstb - security update Debian Security (DSA / DLA) · Feb 26, 2026
References
- https://github.com/nothings/stb/pull/1297
- https://github.com/nothings/stb/issues/1289
- FEDORA-2022-29327a4b98 vendor-advisory
- FEDORA-2022-fe84314a8e vendor-advisory
- FEDORA-2022-c8f6a39cf6 vendor-advisory
- [debian-lts-announce] 20230131 [SECURITY] [DLA 3305-1] libstb security update mailing-list