LIBPNG has an integer truncation causing heap buffer over-read in png_image_write_*
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Alpine Linux ALPINE-CVE-2026-22801 libpng Fixed in: 1.6.54-r0
- Debian DEBIAN-CVE-2026-22801 libpng1.6 Fixed in: 1.6.37-3+deb11u2
- Ubuntu UBUNTU-CVE-2026-22801 libpng1.6 Fixed in: 1.6.34-1ubuntu0.18.04.2+esm2
Original description The description as published by the source.
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From 1.6.26 to 1.6.53, there is an integer truncation in the libpng simplified write API functions png_write_image_16bit and png_write_image_8bit causes heap buffer over-read when the caller provides a negative row stride (for bottom-up image layouts) or a stride exceeding 65535 bytes. The bug was introduced in libpng 1.6.26 (October 2016) by casts added to silence compiler warnings on 16-bit systems. This vulnerability is fixed in 1.6.54.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov