
CVE catalog
CVE-2021-42716
libstb: CVE-2021-42716
- Severity
- High · CVSS 7.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.46% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libstb | sid | 0.0~git20250907.fede005+ds-1 | fixed |
| Debian | libstb | forky | 0.0~git20250907.fede005+ds-1 | fixed |
| Debian | libstb | trixie | 0.0~git20241109.5c20573+ds-1 | fixed |
| Debian | libstb | bookworm | 0.0~git20220908.8b5f1f3+ds-1 | vulnerable |
| Suse | stb | package hub 15 sp3 | 2.32.1549563867.59e9702-bp153.2.3.1 | fixed |
| Opensuse | stb | leap 15.3 | 2.32.1549563867.59e9702-bp153.2.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libstb | source | sid | 0.0~git20230129.5736b15+ds-1 | not yet assigned | Not reported | [1014532] |
| Debian | libstb | source | forky | 0.0~git20230129.5736b15+ds-1 | not yet assigned | Not reported | [1014532] |
| Debian | libstb | source | trixie | 0.0~git20230129.5736b15+ds-1 | not yet assigned | Not reported | [1014532] |
| Debian | libstb | source | bookworm | (unfixed) | not yet assigned | Not reported | [1014532] |
| Suse | stb | rpm | package hub 15 sp3 | 2.32.1549563867.59e9702-bp153.2.3.1 | Not reported | OPENSUSE-SU-2022:0018-1 | Not reported |
| Opensuse | stb | rpm | leap 15.3 | 2.32.1549563867.59e9702-bp153.2.3.1 | Not reported | OPENSUSE-SU-2022:0018-1 | Not reported |
Notes
[bookworm] libstb: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libstb0]Affected
Source package: [libstb]
Details (2)
0.0~git20220908.8b5f1f3+ds-1· amd64 · bookwormAffected
dsa · libstb · debian · bookworm; dsa · libstb · debian · 12
0.0~git20220908.8b5f1f3+ds-1· arm64 · bookwormAffected
dsa · libstb · debian · bookworm; dsa · libstb · debian · 12
- [libstb-dev]Affected
Source package: [libstb]
Details (2)
0.0~git20220908.8b5f1f3+ds-1· amd64 · bookwormAffected
dsa · libstb · debian · bookworm; dsa · libstb · debian · 12
0.0~git20220908.8b5f1f3+ds-1· arm64 · bookwormAffected
dsa · libstb · debian · bookworm; dsa · libstb · debian · 12
[Debian 13 (Trixie)]
- [libstb0t64]Fixed
Source package: [libstb]
Details (2)
0.0~git20241109.5c20573+ds-1· amd64 · trixieFixed · Fixed:
0.0~git20230129.5736b15+ds-1dsa · libstb · debian · 13
0.0~git20241109.5c20573+ds-1· arm64 · trixieFixed · Fixed:
0.0~git20230129.5736b15+ds-1dsa · libstb · debian · 13
- [libstb-dev]Fixed
Source package: [libstb]
Details (2)
0.0~git20241109.5c20573+ds-1· amd64 · trixieFixed · Fixed:
0.0~git20230129.5736b15+ds-1dsa · libstb · debian · 13
0.0~git20241109.5c20573+ds-1· arm64 · trixieFixed · Fixed:
0.0~git20230129.5736b15+ds-1dsa · libstb · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2022_0157-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-42716]
- [https://osv.dev/vulnerability/openSUSE-SU-2022:0018-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-42716]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]