CVE-2026-22695: LIBPNG has a heap buffer over-read in png_image_read_direct_scaled (regression from CVE-2025-65018 fix)
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From 1.6.51 to 1.6.53, there is a heap buffer over-read in the libpng simplified API function pngimagefinishread when processing interlaced 16-bit PNGs with 8-bit output format and non-minimal row stride. This is a regression introduced by the fix for CVE-2025-65018. This vulnerability is fixed in 1.6.54.
Other sources
Several LangChain components that resolve filesystem paths or expand search patterns do not consistently confine the
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/libpng1.6to a version that resolves this vulnerability.Fixed in 1.6.37-3+deb11u2Fixed in 1.6.39-2+deb12u2Fixed in 1.6.48-1+deb13u2Fixed in 1.6.54-1 - Upgrade
Upgrade
ubuntu/libpng1.6to a version that resolves this vulnerability.Fixed in 1.6.20-2ubuntu0.1~esm3 - Upgrade
Upgrade
ubuntu/libpng1.6to a version that resolves this vulnerability.Fixed in 1.6.34-1ubuntu0.18.04.2+esm2 - Upgrade
Upgrade
ubuntu/libpng1.6to a version that resolves this vulnerability.Fixed in 1.6.37-2ubuntu0.1~esm2 - Upgrade
Upgrade
ubuntu/libpng1.6to a version that resolves this vulnerability.Fixed in 1.6.37-3ubuntu0.3 - Upgrade
Upgrade
ubuntu/libpng1.6to a version that resolves this vulnerability.Fixed in 1.6.43-5ubuntu0.3 - Upgrade
Upgrade
ubuntu/libpng1.6to a version that resolves this vulnerability.Fixed in 1.6.50-1ubuntu0.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.6.54
Event History
Frequently Asked Questions
What is the severity of CVE-2026-22695?
CVE-2026-22695 is considered a medium severity vulnerability due to its potential for exploitation through heap buffer over-reads.
How do I fix CVE-2026-22695?
To fix CVE-2026-22695, you should upgrade LIBPNG to version 1.6.54 or later, which resolves the heap buffer over-read issue.
What versions of LIBPNG are affected by CVE-2026-22695?
CVE-2026-22695 affects LIBPNG versions from 1.6.51 to 1.6.53.
What type of vulnerability is CVE-2026-22695?
CVE-2026-22695 is categorized as a heap buffer over-read vulnerability.
Which library is affected by CVE-2026-22695?
CVE-2026-22695 affects the LIBPNG library, which is used for handling PNG image files.