CVE-2025-64506
Linux Debian vulnerability analysis and mitigation

Overview

A heap buffer over-read vulnerability (CVE-2025-64506) was discovered in libpng versions 1.6.0 to before 1.6.51. The vulnerability exists in the pngwriteimage8bit function when processing 8-bit images through the simplified write API with convertto_8bit enabled. This affects 8-bit grayscale+alpha, RGB/RGBA, and images with incomplete row data. The issue was patched in version 1.6.51 released in November 2025 (GitHub Advisory, OSS Security).

Technical details

The vulnerability stems from a conditional guard that incorrectly allows 8-bit input to enter code expecting 16-bit input. The vulnerable condition in pngwrite.c failed to verify that input was 16-bit (linear != 0), contradicting the intended functionality. When a buffer of N bytes is treated as N/2 uint16 values, reads extend up to 2 bytes beyond allocated buffer boundaries. The vulnerability has been assigned a CVSS score of 6.1 (Moderate) with attack vector: Local, attack complexity: Low, and user interaction: Required (GitHub Advisory).

Impact

The vulnerability can lead to information disclosure through heap memory leakage and potential denial of service through application crashes. The exploitation requires user interaction in the form of processing a malicious PNG file (OSS Security).

Mitigation and workarounds

The vulnerability has been fixed in libpng version 1.6.51. The fix restructures the condition to ensure both the alpha path and the convertto8bit path require linear (16-bit) input, preventing 8-bit buffers from being treated as 16-bit data. Users are advised to upgrade to libpng 1.6.51 immediately (OSS Security, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65018HIGH7.1
  • Linux DebianLinux Debian
  • media-libs/libpng
NoYesNov 25, 2025
CVE-2025-64720HIGH7.1
  • Linux DebianLinux Debian
  • libpng1.6
NoYesNov 25, 2025
CVE-2025-59820MEDIUM6.7
  • Linux DebianLinux Debian
  • krita
NoYesNov 26, 2025
CVE-2025-64506MEDIUM6.1
  • Linux DebianLinux Debian
  • libpng
NoYesNov 25, 2025
CVE-2025-64505MEDIUM6.1
  • Linux DebianLinux Debian
  • libpng1.6
NoYesNov 25, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management