CVE-2021-42716

Summary

CVECVE-2021-42716
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-10-21 19:15:00 UTC
Updated2023-11-07 03:39:00 UTC
DescriptionAn 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.

Risk And Classification

Problem Types: CWE-120

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 33 All All All
Operating System Fedoraproject Fedora 34 All All All
Operating System Fedoraproject Fedora 35 All All All
Application Nothings Stb Image.h 2.27 All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 34 Update: stb-0-0.7.20211022gitaf1a5bc.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
stbi__pnm_load heap-buffer-overflow bug · Issue #1166 · nothings/stb · GitHub MISC github.com
[SECURITY] Fedora 34 Update: sdrpp-1.0.4-3.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 35 Update: sdrpp-1.0.4-3.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 33 Update: stb-0-0.7.20211022gitaf1a5bc.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Fixes a crash and an infinite loop in stb_image that could occur with specially constructed PGM and HDR files by NeilBickford-NV · Pull Request #1223 · nothings/stb · GitHub MISC github.com
[SECURITY] Fedora 35 Update: stb-0-0.7.20211022gitaf1a5bc.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 34 Update: usd-21.08-19.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 35 Update: stb-0-0.7.20211022gitaf1a5bc.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
In stb_image's PNM reader, loading a specially constructed valid 16-bit PGM file with 4 channels can cause a crash due to an out-of-bounds read · Issue #1225 · nothings/stb · GitHub MISC github.com
[SECURITY] Fedora 34 Update: stb-0-0.7.20211022gitaf1a5bc.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 34 Update: sdrpp-1.0.4-3.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 34 Update: CuraEngine-4.11.0-2.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 33 Update: stb-0-0.7.20211022gitaf1a5bc.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 35 Update: CuraEngine-4.11.0-2.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 34 Update: usd-21.08-19.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 35 Update: usd-21.08-17.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 34 Update: CuraEngine-4.11.0-2.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 35 Update: sdrpp-1.0.4-3.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 35 Update: CuraEngine-4.11.0-2.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 35 Update: usd-21.08-17.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 282023 Fedora Security Update for stb (FEDORA-2021-0511a38484)
  • 282024 Fedora Security Update for stb (FEDORA-2021-082bea5b34)
  • 282025 Fedora Security Update for sdrpp (FEDORA-2021-3fc69d203c)
  • 282029 Fedora Security Update for CuraEngine (FEDORA-2021-8ea648186c)
  • 282639 Fedora Security Update for usd (FEDORA-2022-832689aa6b)
  • 751640 SUSE Enterprise Linux Security Update for zxing-cpp (SUSE-SU-2022:0163-1)
  • 751643 OpenSUSE Security Update for zxing-cpp (openSUSE-SU-2022:0157-1)
  • 753345 SUSE Enterprise Linux Security Update for zxing-cpp (SUSE-SU-2022:0157-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report