DEBIAN-CVE-2021-42716

Source
https://security-tracker.debian.org/tracker/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-25T23:25:30.196352Z
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
0.0~git20241109.5c20573+ds-1
0.0~git20250907.fede005+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

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"
}