CVE-2026-33636

NameCVE-2026-33636
DescriptionLIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. In versions 1.6.36 through 1.6.55, an out-of-bounds read and write exists in libpng's ARM/AArch64 Neon-optimized palette expansion path. When expanding 8-bit paletted rows to RGB or RGBA, the Neon loop processes a final partial chunk without verifying that enough input pixels remain. Because the implementation works backward from the end of the row, the final iteration dereferences pointers before the start of the row buffer (OOB read) and writes expanded pixel data to the same underflowed positions (OOB write). This is reachable via normal decoding of attacker-controlled PNG input if Neon is enabled. Version 1.6.56 fixes the issue.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4521-1, DSA-6189-1
Debian Bugs1132013

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libpng1.6 (PTS)bullseye1.6.37-3vulnerable
bullseye (security)1.6.37-3+deb11u3fixed
bookworm1.6.39-2+deb12u1vulnerable
bookworm (security)1.6.39-2+deb12u4fixed
trixie1.6.48-1+deb13u3vulnerable
trixie (security)1.6.48-1+deb13u4fixed
forky, sid1.6.56-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libpng1.6sourcebullseye1.6.37-3+deb11u3DLA-4521-1
libpng1.6sourcebookworm1.6.39-2+deb12u4DSA-6189-1
libpng1.6sourcetrixie1.6.48-1+deb13u4DSA-6189-1
libpng1.6source(unstable)1.6.56-11132013

Notes

https://github.com/pnggroup/libpng/security/advisories/GHSA-wjr5-c57x-95m2
Introduced with: https://github.com/pnggroup/libpng/commit/7734cda20cf1236aef60f3bbd2267c97bbb40869 (v1.6.36)
Fixed by: https://github.com/pnggroup/libpng/commit/aba9f18eba870d14fb52c5ba5d73451349e339c3 (v1.6.56)

Search for package or bug name: Reporting problems