FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

png -- CWE-122: Heap-based Buffer Overflow

Affected packages
png < 1.6.55

Details

VuXML ID f9cb72e4-0b52-11f1-8e75-b42e991fc52e
Discovery 2026-02-10
Entry 2026-02-16

https://github.com/pnggroup/libpng/security/advisories/GHSA-g8hp-mq4h-rqm3 reports:

LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. Prior to 1.6.55, an out-of-bounds read vulnerability exists in the png_set_quantize() API function. When the function is called with no histogram and the number of colors in the palette is more than twice the maximum supported by the user's display, certain palettes will cause the function to enter into an infinite loop that reads past the end of an internal heap-allocated buffer. The images that trigger this vulnerability are valid per the PNG specification. This vulnerability is fixed in 1.6.55.

References

CVE Name CVE-2026-25646
URL https://cveawg.mitre.org/api/cve/CVE-2026-25646