Description
A flaw has been found in Nothings stb up to 1.16. This affects the function stbi_write_png_to_mem/stbi_write_jpg_core/stbi_write_tga_core in the library stb_image_write.h of the component Image Encoding. Executing a manipulation can lead to integer overflow. The attack can be executed remotely. The exploit has been published and may be used.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Nothings | stb | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16 | — |
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
- VDB-411497 | Nothings stb Image Encoding stb_image_write.h stbi_write_tga_core integer overflow vdb-entry technical-description
- VDB-411497 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- CVE-2026-102805 | CVE Analysis and Report third-party-advisory
- Submit #944868 | nothings stb (stb_image_write.h) 31c1ad3 (latest at time of discovery) CWE-190: Integer Overflow; CWE-787: Out-of-bounds Write; CWE-125 third-party-advisory
- https://github.com/nothings/stb/issues/1964 exploit issue-tracking
- https://github.com/nothings/stb/issues/1964#issuecomment-5404606996 issue-tracking
- https://github.com/nothings/stb/ product