← ASI Threat and Patch Database

ASI-2026-0004

HIGH FIXED CVSS: 7.1 Published: 2026-07-20

Description

In png_decode of png.c, the row stride is computed as width multiplied by channel count using 32-bit arithmetic before being validated against the maximum allowed image size. An attacker-controlled width value in the IHDR chunk can cause this multiplication to overflow, wrapping the computed stride to a small value that passes the size check, while the pixel buffer is subsequently allocated using the wrapped stride. A later conversion loop still iterates using the original, un-wrapped width when indexing into that undersized buffer, resulting in an out-of-bounds heap read. This is reachable by decoding any attacker-supplied PNG file (e.g. via an image viewer, wallpaper loader, or icon loader).

Affected Platforms

Artfical tOS < 0.9.108

Weakness Type

CWE-190, CWE-125

Discovered By

Artfical DT Developer Talha Berk Arslan

References