cve.bz

CVE-2026-34757 Use After Free

4.4 mediumExploit referenceEPSS 0.2%Fix available

Medium (4.4). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From 1.0.9 to before 1.6.57, passing a pointer obtained from png_get_PLTE, png_get_tRNS, or png_get_hIST back into the corresponding setter on the same png_struct/png_info pair causes the setter to read from freed memory and copy its contents into the replacement buffer. The setter frees the internal buffer before copying from the caller-supplied pointer, which now dangles. The freed region may contain stale data (producing silently corrupted chunk metadata) or data from subsequent heap allocations (leaking unrelated heap contents into the chunk struct). This vulnerability is fixed in 1.6.57.

Severity

CVSS 3.1

4.4 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 10th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-34757 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-34757?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-34757?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-34757 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libpng:libpngfrom 1.0.9 before 1.6.57
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libpng1.61.6.37-3+deb11u4DLA-4573-1
Debian12libpng1.61.6.39-2+deb12u5DEBIAN-CVE-2026-34757 DSA-6263-1
Debian13libpng1.61.6.48-1+deb13u5DEBIAN-CVE-2026-34757 DSA-6263-1
Debian14libpng1.61.6.57-1DEBIAN-CVE-2026-34757
Ubuntu22.04:LTSlibpng1.61.6.37-3ubuntu0.5UBUNTU-CVE-2026-34757
Ubuntu24.04:LTSlibpng1.61.6.43-5ubuntu0.6UBUNTU-CVE-2026-34757
Ubuntu25.10libpng1.61.6.50-1ubuntu0.5UBUNTU-CVE-2026-34757
UbuntuPro:14.04:LTSlibpng1.2.50-1ubuntu2.14.04.3+esm2UBUNTU-CVE-2026-34757
UbuntuPro:16.04:LTSlibpng1.2.54-1ubuntu1.1+esm3UBUNTU-CVE-2026-34757
UbuntuPro:16.04:LTSlibpng1.61.6.20-2ubuntu0.1~esm4UBUNTU-CVE-2026-34757
UbuntuPro:18.04:LTSlibpng1.61.6.34-1ubuntu0.18.04.2+esm3UBUNTU-CVE-2026-34757
UbuntuPro:20.04:LTSlibpng1.61.6.37-2ubuntu0.1~esm3UBUNTU-CVE-2026-34757
Red Hathummingbird:1libpng, libpng-devel, libpng-tools and 1 more0:1.6.57-0.1.hum1RHSA-2026:13719
SUSELinux Enterprise Module for Basesystem 15 SP7libpng161.6.40-150600.3.20.1SUSE-SU-2026:1602-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5libpng151.5.22-10.10.1SUSE-SU-2026:1500-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libpng161.6.8-15.24.1SUSE-SU-2026:1601-1
SUSELinux Micro 6.0libpng161.6.43-5.1SUSE-SU-2026:21251-1
SUSELinux Micro 6.0libpng161.6.58-1.1SUSE-SU-2026:23063-1
SUSELinux Micro 6.1libpng161.6.43-slfo.1.1_5.1SUSE-SU-2026:21262-1
SUSELinux Micro 6.1libpng161.6.58-slfo.1.1_1.1SUSE-SU-2026:23514-1
SUSELinux Micro 6.2libpng161.6.44-160000.7.1SUSE-SU-2026:21239-1
openSUSELeap 16.0libpng161.6.44-160000.7.1openSUSE-SU-2026:20593-1
openSUSETumbleweedlibpng121.2.59-5.1openSUSE-SU-2026:10640-1
openSUSETumbleweedlibpng161.6.57-1.1openSUSE-SU-2026:10564-1
Alpinev3.20, v3.21, v3.22 and 2 morelibpng1.6.57-r0ALPINE-CVE-2026-34757
Azure Linux3fltkno fix listedAZL-85478
Azure Linux3gdalno fix listedAZL-85481
Azure Linux3libpng1.6.57-1AZL-82643
Azure Linux3libpng12no fix listedAZL-85484
Azure Linux3libpng15no fix listedAZL-85487
Azure Linux3openjpeg2no fix listedAZL-85490
Azure Linux3optipngno fix listedAZL-85493
Alpaquita23, 25, streamlibpng1.6.57-r0BELL-CVE-2026-34757
BellSoft Hardened Containers23, 25, streamlibpng1.6.57-r0BELL-CVE-2026-34757

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

There's a use-after-free vulnerability in libpng. The flaw occurs when an application reuses a pointer from `png_get_PLTE`, `png_get_tRNS`, or `png_get_hIST` and passes it to a corresponding setter, leading to memory corruption or information disclosure. A local attacker could exploit this if a vulnerable application processes PNG files in this specific manner.

Red Hat Product Security team has rated this as having a moderate impact as the user needs to be tricked to open the maliciously crafted PNG image, additionally the attacker doesn't have full control if the content it's exfiltrating or corruption in the memory.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imageslibpng-main-1.6.57-0.1.hum1Fixed 2026-05-05RHSA-2026:13719
Red Hat build of OpenJDK 11 ELSjava-11-openjdkFix deferred
Red Hat build of OpenJDK 11 ELSjava-11-openjdk-portableFix deferred
Red Hat build of OpenJDK 11 ELSjava-17-openjdkFix deferred
Red Hat build of OpenJDK 11 ELSjava-21-openjdkFix deferred
Red Hat build of OpenJDK 11 ELSjava-21-openjdk-vanillaFix deferred
Red Hat build of OpenJDK 11 ELSjava-25-openjdk-portableFix deferred
Red Hat build of OpenJDK 17java-17-openjdkFix deferred
Red Hat build of OpenJDK 17java-17-openjdk-portableFix deferred
Red Hat build of OpenJDK 17java-21-openjdkFix deferred
Red Hat build of OpenJDK 17java-21-openjdk-vanillaFix deferred
Red Hat build of OpenJDK 17java-25-openjdk-portableFix deferred
Red Hat build of OpenJDK 1.8java-17-openjdkFix deferred
Red Hat build of OpenJDK 1.8java-1.8.0-openjdk-portableFix deferred
Red Hat build of OpenJDK 1.8java-21-openjdkFix deferred
Red Hat build of OpenJDK 1.8java-21-openjdk-vanillaFix deferred
Red Hat build of OpenJDK 21java-17-openjdkFix deferred
Red Hat build of OpenJDK 21java-21-openjdkFix deferred
Red Hat build of OpenJDK 21java-21-openjdk-portableFix deferred
Red Hat build of OpenJDK 21java-21-openjdk-vanillaFix deferred
30 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-34757.

References

Check your stackJSON