p PatchFirst

CVE-2021-42716

CVE-2021-42716

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.1 · High · EPSS 1.5% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • libstb Debian:12

    Versions
    • 0.0~git20220908.8b5f1f3+ds-1
    • 0.0~git20230129.5736b15+ds-1
    • 0.0~git20230129.5736b15+ds-1.1
    • 0.0~git20230129.5736b15+ds-1.1~exp1
    • 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
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libstb Debian:13

    Affected ranges
    • ECOSYSTEM: < 0.0~git20230129.5736b15+ds-1

    Update to 0.0~git20230129.5736b15+ds-1

  • libstb Debian:14

    Affected ranges
    • ECOSYSTEM: < 0.0~git20230129.5736b15+ds-1

    Update to 0.0~git20230129.5736b15+ds-1

  • libstb Ubuntu:20.04:LTS

    Versions
    • 0.0~git20190817.1.052dce1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libstb Ubuntu:22.04:LTS

    Versions
    • 0.0~git20200713.b42009b+ds-1
    • 0.0~git20210910.af1a5bc+ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libstb Ubuntu:24.04:LTS

    Versions
    • 0.0~git20230129.5736b15+ds-1
    • 0.0~git20230129.5736b15+ds-1.1
    • 0.0~git20230129.5736b15+ds-1.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libstb Ubuntu:25.10

    Versions
    • 0.0~git20240715.f7f20f39fe4f+ds-1
    • 0.0~git20241109.5c20573+ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libstb Ubuntu:26.10

    Versions
    • 0.0~git20250907.fede005+ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libstb Ubuntu:26.04:LTS

    Versions
    • 0.0~git20241109.5c20573+ds-1
    • 0.0~git20250907.fede005+ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →