CVE-2021-42716: fedoraproject fedora Classic Buffer Overflow
Vulnerability summary
CVE-2021-42716 is a high (CVSS 7.1) Classic Buffer Overflow vulnerability in fedoraproject fedora. EPSS estimates a 1.46% chance of exploitation in the next 30 days, higher than 73.1% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 5 · Related 3Timeline
- 21-10-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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 metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
EPSS trend
Probability
1.46%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
-0.01 pp
From 1.46% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundStb
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian1 product
- libstbAll versions (No fix recorded) | < 0.0~git20230129.5736b15+ds-1
Fedoraproject1 product
- fedoraEOL33 | 34 | 35
Nothings1 product
- stb_image.h2.27
Opensuse1 product
- stb&distro=openSUSE Leap 15.3< 2.32.1549563867.59e9702-bp153.2.3.1
Suse1 product
- stb&distro=SUSE Package Hub 15 SP3< 2.32.1549563867.59e9702-bp153.2.3.1
Ubuntu1 product
- libstbAll versions (No fix recorded)
6 vendors · 6 products
References
18 linksShow all 18 references
- lists.opensuse.org/archives/…Advisory