DEBIAN-CVE-2021-42716

Source
https://security-tracker.debian.org/tracker/DEBIAN-CVE-2021-42716
Import Source
https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-42716.json
JSON Data
https://api.test.osv.dev/v1/vulns/DEBIAN-CVE-2021-42716
Upstream
Published
2021-10-21T19:15:08Z
Modified
2025-09-19T06:05:05Z
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: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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:14 / 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

Ecosystem specific

{
    "urgency": "not yet assigned"
}