Buffer Overflow Affecting libstb package, versions <0.0~git20230129.5736b15+ds-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.2% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-LIBSTB-1766505
  • published22 Oct 2021
  • disclosed21 Oct 2021

Introduced: 21 Oct 2021

CVE-2021-42716  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade Debian:unstable libstb to version 0.0~git20230129.5736b15+ds-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libstb package and not the libstb package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

References

CVSS Scores

version 3.1