CVE-2021-42716

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2021-42716
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-42716.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-42716
Related
Published
2021-10-21T19:15:08Z
Modified
2024-09-18T03:16:39.366493Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

An issue was discovered in stb stbimage.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 stbimage, or read up to 1024 bytes of non-consecutive heap data without control over the read location.

References

Affected packages

Debian:12 / libstb

Package

Name
libstb
Purl
pkg:deb/debian/libstb?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.0~git20220908.8b5f1f3+ds-1
0.0~git20230129.5736b15+ds-1
0.0~git20230129.5736b15+ds-1.1~exp1
0.0~git20230129.5736b15+ds-1.1
0.0~git20230129.5736b15+ds-1.2
0.0~git20240715.f7f20f39fe4f+ds-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / libstb

Package

Name
libstb
Purl
pkg:deb/debian/libstb?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0~git20230129.5736b15+ds-1

Affected versions

0.*

0.0~git20220908.8b5f1f3+ds-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}