Description
An issue was discovered in stb stb_image.h 1.33 through 2.27. The HDR loader parsed truncated end-of-file RLE scanlines as an infinite sequence of zero-length runs. An attacker could potentially have caused denial of service in applications using stb_image by submitting crafted HDR files.
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 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | zxing-cpp | 1.2.0-9.7.1 | SUSE-SU-2022:0157-1 |
| SLES 12 SP5 | zxing-cpp | 1.2.0-8.6.1 | SUSE-SU-2022:0163-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.3 | zxing-cpp | 1.2.0-9.7.1 | openSUSE-SU-2022:0157-1 |
Advisories 5
- 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
- SUSE-SU-2022:0157-1 Security update for zxing-cpp SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0163-1 Security update for zxing-cpp SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:0157-1 Security update for zxing-cpp SUSE / openSUSE Security Updates · May 7, 2025
References
- https://github.com/nothings/stb/issues/1224
- https://github.com/nothings/stb/pull/1223
- FEDORA-2021-001f25d986 vendor-advisory
- FEDORA-2021-d1446cd1ac vendor-advisory
- FEDORA-2021-f8ba4a690e vendor-advisory
- FEDORA-2021-0511a38484 vendor-advisory
- FEDORA-2021-082bea5b34 vendor-advisory
- FEDORA-2021-3fc69d203c vendor-advisory
- FEDORA-2021-8ea648186c vendor-advisory
- FEDORA-2021-16d848834d vendor-advisory
- FEDORA-2022-832689aa6b vendor-advisory
- [debian-lts-announce] 20230131 [SECURITY] [DLA 3305-1] libstb security update mailing-list