CVE catalog

CVE-2021-42716

libstb: CVE-2021-42716

[CVE catalog]

Severity
High · CVSS 7.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.46% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibstbsid0.0~git20250907.fede005+ds-1fixed
Debianlibstbforky0.0~git20250907.fede005+ds-1fixed
Debianlibstbtrixie0.0~git20241109.5c20573+ds-1fixed
Debianlibstbbookworm0.0~git20220908.8b5f1f3+ds-1vulnerable
Susestbpackage hub 15 sp32.32.1549563867.59e9702-bp153.2.3.1fixed
Opensusestbleap 15.32.32.1549563867.59e9702-bp153.2.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibstbsourcesid0.0~git20230129.5736b15+ds-1not yet assignedNot reported[1014532]
Debianlibstbsourceforky0.0~git20230129.5736b15+ds-1not yet assignedNot reported[1014532]
Debianlibstbsourcetrixie0.0~git20230129.5736b15+ds-1not yet assignedNot reported[1014532]
Debianlibstbsourcebookworm(unfixed)not yet assignedNot reported[1014532]
Susestbrpmpackage hub 15 sp32.32.1549563867.59e9702-bp153.2.3.1Not reportedOPENSUSE-SU-2022:0018-1Not reported
Opensusestbrpmleap 15.32.32.1549563867.59e9702-bp153.2.3.1Not reportedOPENSUSE-SU-2022:0018-1Not reported

[Debian bug #1014532]

Notes

[bookworm] libstb: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libstb0]Affected

    Source package: [libstb]

    Details (2)
    • 0.0~git20220908.8b5f1f3+ds-1 · amd64 · bookworm

      Affected

      dsa · libstb · debian · bookworm; dsa · libstb · debian · 12

    • 0.0~git20220908.8b5f1f3+ds-1 · arm64 · bookworm

      Affected

      dsa · libstb · debian · bookworm; dsa · libstb · debian · 12

  • [libstb-dev]Affected

    Source package: [libstb]

    Details (2)
    • 0.0~git20220908.8b5f1f3+ds-1 · amd64 · bookworm

      Affected

      dsa · libstb · debian · bookworm; dsa · libstb · debian · 12

    • 0.0~git20220908.8b5f1f3+ds-1 · arm64 · bookworm

      Affected

      dsa · libstb · debian · bookworm; dsa · libstb · debian · 12

[Debian 13 (Trixie)]

  • [libstb0t64]Fixed

    Source package: [libstb]

    Details (2)
    • 0.0~git20241109.5c20573+ds-1 · amd64 · trixie

      Fixed · Fixed: 0.0~git20230129.5736b15+ds-1

      dsa · libstb · debian · 13

    • 0.0~git20241109.5c20573+ds-1 · arm64 · trixie

      Fixed · Fixed: 0.0~git20230129.5736b15+ds-1

      dsa · libstb · debian · 13

  • [libstb-dev]Fixed

    Source package: [libstb]

    Details (2)
    • 0.0~git20241109.5c20573+ds-1 · amd64 · trixie

      Fixed · Fixed: 0.0~git20230129.5736b15+ds-1

      dsa · libstb · debian · 13

    • 0.0~git20241109.5c20573+ds-1 · arm64 · trixie

      Fixed · Fixed: 0.0~git20230129.5736b15+ds-1

      dsa · libstb · debian · 13

Observed:

References