Heap-based Buffer Overflow Affecting libpng12 package, versions <0:1.2.57-6.el8_10


Severity

Recommended
0.0
high
0
10

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
0.96% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALMALINUX8-LIBPNG12-15930658
  • published8 Apr 2026
  • disclosed26 Feb 2026

Introduced: 26 Feb 2026

CVE-2026-25646  (opens in a new tab)
CWE-122  (opens in a new tab)
CWE-126  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:8 libpng12 to version 0:1.2.57-6.el8_10 or higher.
This issue was patched in ALSA-2026:6445.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libpng12 package and not the libpng12 package as distributed by AlmaLinux. See How to fix? for AlmaLinux:8 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1