CVE-2021-42716
CVE-2021-42716
This page contains facts from public vulnerability sources. Check the original advisory before updating.
An issue was discovered in stb stb_image.h 2.27. The PNM loader incorrectly interpreted 16-bit PGM files as 8-bit when converting to RGBA, leading to a buffer overflow when later reinterpreting the result as a 16-bit buffer. An attacker could potentially have crashed a service using stb_image, or read up to 1024 bytes of non-consecutive heap data without control over the read location.
CVSS 7.1 · High · EPSS 1.5% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
libstb Debian:12
- Versions
- 0.0~git20220908.8b5f1f3+ds-1
- 0.0~git20230129.5736b15+ds-1
- 0.0~git20230129.5736b15+ds-1.1
- 0.0~git20230129.5736b15+ds-1.1~exp1
- 0.0~git20230129.5736b15+ds-1.2
- 0.0~git20240715.f7f20f39fe4f+ds-1
- 0.0~git20241109.5c20573+ds-1
- 0.0~git20250907.fede005+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libstb Debian:13
- Affected ranges
- ECOSYSTEM: < 0.0~git20230129.5736b15+ds-1
Update to 0.0~git20230129.5736b15+ds-1
libstb Debian:14
- Affected ranges
- ECOSYSTEM: < 0.0~git20230129.5736b15+ds-1
Update to 0.0~git20230129.5736b15+ds-1
libstb Ubuntu:20.04:LTS
- Versions
- 0.0~git20190817.1.052dce1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libstb Ubuntu:22.04:LTS
- Versions
- 0.0~git20200713.b42009b+ds-1
- 0.0~git20210910.af1a5bc+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libstb Ubuntu:24.04:LTS
- Versions
- 0.0~git20230129.5736b15+ds-1
- 0.0~git20230129.5736b15+ds-1.1
- 0.0~git20230129.5736b15+ds-1.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libstb Ubuntu:25.10
- Versions
- 0.0~git20240715.f7f20f39fe4f+ds-1
- 0.0~git20241109.5c20573+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libstb Ubuntu:26.10
- Versions
- 0.0~git20250907.fede005+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libstb Ubuntu:26.04:LTS
- Versions
- 0.0~git20241109.5c20573+ds-1
- 0.0~git20250907.fede005+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/nothings/stb/issues/1166
- https://github.com/nothings/stb/pull/1223
- https://github.com/nothings/stb/issues/1225
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G2M5CRSGPRF7G3YB5CLU4FXW7ANNHAYT/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ID6II3RIKAMVGVMC6ZAQIXXYYDMTVC4N/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEGXBDEMTFGINETMJENBZ6SCHVEJQJSY/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CI23LXPEV2GCDQTJSKO6CIILBDTI3R42/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FTZXHFZD36BGE5P6JF252NZZLKMGCY4T/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VP2YEXEAJWI76FPM7D7VXHWD3WESQEYC/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3TDGZFLBOP27LZKLH45WQLSNPSPP7S7Z/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AF2CNP4FVC6LDKNOO4WDCGNDYIP3MPK6/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXX76TJMZBPN3NU542MGN6B7C7QHRFGB/
- https://nvd.nist.gov/vuln/detail/CVE-2021-42716