CVE Vulnerabilities

CVE-2025-66293

Out-of-bounds Read

Published: Dec 03, 2025 | Modified: Dec 16, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.1 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.52, an out-of-bounds read vulnerability in libpngs simplified API allows reading up to 1012 bytes beyond the png_sRGB_base[512] array when processing valid palette PNG images with partial transparency and gamma correction. The PNG files that trigger this vulnerability are valid per the PNG specification; the bug is in libpngs internal state management. Upgrade to libpng 1.6.52 or later.

Weakness

The product reads data past the end, or before the beginning, of the intended buffer.

Affected Software

NameVendorStart VersionEnd Version
LibpngLibpng*1.6.52 (excluding)
Red Hat Enterprise Linux 10RedHatlibpng-2:1.6.40-8.el10_1.1*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatlibpng-2:1.6.40-8.el10_0.1*
Red Hat Enterprise Linux 8RedHatmingw-libpng-0:1.6.34-1.el8_10*
Red Hat Enterprise Linux 8RedHatlibpng-2:1.6.34-9.el8_10*
Red Hat Enterprise Linux 8.2 Advanced Update SupportRedHatlibpng-2:1.6.34-8.el8_2.1*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatlibpng-2:1.6.34-8.el8_4.1*
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRedHatlibpng-2:1.6.34-8.el8_4.1*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatlibpng-2:1.6.34-8.el8_6.1*
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRedHatlibpng-2:1.6.34-8.el8_6.1*
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRedHatlibpng-2:1.6.34-8.el8_6.1*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatlibpng-2:1.6.34-8.el8_8.1*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatlibpng-2:1.6.34-8.el8_8.1*
Red Hat Enterprise Linux 9RedHatlibpng-2:1.6.37-12.el9_7.1*
Red Hat Enterprise Linux 9RedHatlibpng-2:1.6.37-12.el9_7.1*
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsRedHatlibpng-2:1.6.37-12.el9_0.1*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatlibpng-2:1.6.37-12.el9_2.1*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatlibpng-2:1.6.37-12.el9_4.1*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatlibpng-2:1.6.37-12.el9_6.1*
Red Hat Discovery 2RedHatdiscovery/discovery-ui-rhel9:sha256:899bd7f941512d54af8ab369ca03028a7d27d05887ccce24bc12c7ccd3e4dbee*
Chromium-browserUbuntuupstream*
Libpng1.6Ubuntujammy*
Libpng1.6Ubuntunoble*
Libpng1.6Ubuntuplucky*
Libpng1.6Ubuntuquesting*
Libpng1.6Ubuntuupstream*
ThunderbirdUbuntuplucky*

Potential Mitigations

  • Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
  • When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”
  • Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
  • To reduce the likelihood of introducing an out-of-bounds read, ensure that you validate and ensure correct calculations for any length argument, buffer size calculation, or offset. Be especially careful of relying on a sentinel (i.e. special character such as NUL) in untrusted inputs.

References