Advisory

DEBIAN-CVE-2021-42716

Also known as: CVE-2021-42716

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.1, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H

Dates

Published
2021-10-21 19:15 UTC
Modified
2026-10-23 18:04 UTC

Affected packages and fixes

libstb

Debian packages (deb) · Debian 12

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

libstb

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 0.0~git20230129.5736b15+ds-1 (ecosystem)

Fixed versions

0.0~git20230129.5736b15+ds-1

Fix

  • Fixed version 0.0~git20230129.5736b15+ds-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libstb

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 0.0~git20230129.5736b15+ds-1 (ecosystem)

Fixed versions

0.0~git20230129.5736b15+ds-1

Fix

  • Fixed version 0.0~git20230129.5736b15+ds-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences