Heap-based Buffer Overflow Affecting libpng package, versions <2:1.6.37-12.el9_7.2


Severity

Recommended
0.0
high
0
10

Based on Oracle Linux security rating.

Threat Intelligence

EPSS
0.06% (20th 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 Learn

Learn about Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ORACLE9-LIBPNG-15363734
  • published28 Feb 2026
  • disclosed10 Feb 2026

Introduced: 10 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 Oracle:9 libpng to version 2:1.6.37-12.el9_7.2 or higher.
This issue was patched in ELSA-2026-3405.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libpng package and not the libpng package as distributed by Oracle. See How to fix? for Oracle:9 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.

CVSS Base Scores

version 3.1