Skip to content

CVE-2026-91186 PNG decoder: a duplicate IHDR chunk after IDAT resizes the image after allocation, causing a heap out-of-bounds write

HighCVSS 8.4 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

The PNG chunk reader has no notion of chunk ordering. It records whether an IDAT has been seen and whether a tRNS has already supplied transparency, but nothing prevents an IHDR being read a second time.

A PNG carries exactly one IHDR and it is the first chunk. A file that places a second one after IDAT rewrites the image width, height, bit depth and pixel depth after the decoded-data buffer has already been allocated and filled from the original values. The pass that reverses the PNG row filters then derives its own extent from the new dimensions and walks the old allocation, moving image bytes past the end of it.

The buffer is allocated by GUIX rather than supplied by the caller, so the application has no way to size it defensively. The decoder is compiled in by default.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
Eclipse Foundation Eclipse ThreadX - GUIX <= 6.5.1.202602a after 6.5.1.202602a Fixed

Affected products

ProductAffected versionsFixed in
Eclipse Foundation Eclipse ThreadX - GUIX <= 6.5.1.202602a No fix listed

References