CVE Vulnerabilities

CVE-2025-65018

Heap-based Buffer Overflow

Published: Nov 25, 2025 | Modified: Nov 26, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.1 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/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. From version 1.6.0 to before 1.6.51, there is a heap buffer overflow vulnerability in the libpng simplified API function png_image_finish_read when processing 16-bit interlaced PNGs with 8-bit output format. Attacker-crafted interlaced PNG files cause heap writes beyond allocated buffer bounds. This issue has been patched in version 1.6.51.

Weakness

A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Affected Software

NameVendorStart VersionEnd Version
LibpngLibpng1.6.0 (including)1.6.51 (excluding)
OPENJDK ELS 11.0.30RedHatjava-11-openjdk-portable*
OPENJDK ELS 11.0.30RedHat*
Red Hat Build of OpenJDK 17.0.18RedHatjava-17-openjdk-portable*
Red Hat Build of OpenJDK 21.0.10RedHatjava-21-openjdk-portable*
Red Hat Build of OpenJDK 25.0.2RedHatjava-25-openjdk-portable*
Red Hat Build of OpenJDK 8u482RedHatjava-1.8.0-openjdk-portable*
Red Hat Enterprise Linux 10RedHatlibpng-2:1.6.40-8.el10_1.1*
Red Hat Enterprise Linux 10RedHatjava-21-openjdk-1:21.0.10.0.7-1.el10*
Red Hat Enterprise Linux 10RedHatjava-25-openjdk-1:25.0.2.0.10-1.el10*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatlibpng-2:1.6.40-8.el10_0.1*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatjava-21-openjdk-1:21.0.10.0.7-1.el10*
Red Hat Enterprise Linux 8RedHatjava-17-openjdk-1:17.0.18.0.8-1.el8*
Red Hat Enterprise Linux 8RedHatjava-21-openjdk-1:21.0.10.0.7-1.el8*
Red Hat Enterprise Linux 8RedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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 SupportRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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 SupportRedHatjava-17-openjdk-1:17.0.18.0.8-1.el8*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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-OnRedHatjava-17-openjdk-1:17.0.18.0.8-1.el8*
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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 SupportRedHatjava-17-openjdk-1:17.0.18.0.8-1.el8*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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 ServiceRedHatjava-17-openjdk-1:17.0.18.0.8-1.el8*
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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 SolutionsRedHatjava-17-openjdk-1:17.0.18.0.8-1.el8*
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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 ServiceRedHatjava-17-openjdk-1:17.0.18.0.8-1.el8*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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 SolutionsRedHatjava-17-openjdk-1:17.0.18.0.8-1.el8*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el8*
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 9RedHatjava-17-openjdk-1:17.0.18.0.8-1.el9*
Red Hat Enterprise Linux 9RedHatjava-21-openjdk-1:21.0.10.0.7-1.el9*
Red Hat Enterprise Linux 9RedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el9*
Red Hat Enterprise Linux 9RedHatjava-25-openjdk-1:25.0.2.0.10-1.el9*
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.0 Update Services for SAP SolutionsRedHatjava-17-openjdk-1:17.0.18.0.8-1.el9*
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el9*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatlibpng-2:1.6.37-12.el9_2.1*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatjava-17-openjdk-1:17.0.18.0.8-1.el9*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el9*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatlibpng-2:1.6.37-12.el9_4.1*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatjava-17-openjdk-1:17.0.18.0.8-1.el9*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatjava-21-openjdk-1:21.0.10.0.7-1.el9*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el9*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatlibpng-2:1.6.37-12.el9_6.1*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatjava-17-openjdk-1:17.0.18.0.8-1.el9*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatjava-21-openjdk-1:21.0.10.0.7-1.el9*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatjava-1.8.0-openjdk-1:1.8.0.482.b08-1.el9*
Red Hat OpenJDK 11 els for RHEL 7RedHatjava-11-openjdk-1:11.0.30.0.7-1.el7_9*
Red Hat OpenJDK 11 els for RHEL 8RedHatjava-11-openjdk-1:11.0.30.0.7-1.el8*
Red Hat OpenJDK 11 els for RHEL 9RedHatjava-11-openjdk-1:11.0.30.0.7-1.el9*
Red Hat Discovery 2RedHatdiscovery/discovery-ui-rhel9:sha256:899bd7f941512d54af8ab369ca03028a7d27d05887ccce24bc12c7ccd3e4dbee*
Chromium-browserUbuntuupstream*
Libpng1.6Ubuntuesm-apps/xenial*
Libpng1.6Ubuntuesm-infra/bionic*
Libpng1.6Ubuntuesm-infra/focal*
Libpng1.6Ubuntujammy*
Libpng1.6Ubuntunoble*
Libpng1.6Ubuntuplucky*
Libpng1.6Ubuntuquesting*
ThunderbirdUbuntuplucky*

Potential Mitigations

  • Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking.
  • D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.
  • Run or compile the software using features or extensions that randomly arrange the positions of a program’s executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.
  • Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as “rebasing” (for Windows) and “prelinking” (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking.
  • For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND [REF-1335].

References