cve.bz

CVE-2026-33416 libpng libpng: Use After Free

7.5 highExploit referenceEPSS 1.1%Fix available

High (7.5) in libpng libpng. EPSS 1.1% 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. In versions 1.2.1 through 1.6.55, `png_set_tRNS` and `png_set_PLTE` each alias a heap-allocated buffer between `png_struct` and `png_info`, sharing a single allocation across two structs with independent lifetimes. The `trans_alpha` aliasing has been present since at least libpng 1.0, and the `palette` aliasing since at least 1.2.1. Both affect all prior release lines `png_set_tRNS` sets `png_ptr->trans_alpha = info_ptr->trans_alpha` (256-byte buffer) and `png_set_PLTE` sets `info_ptr->palette = png_ptr->palette` (768-byte buffer). In both cases, calling `png_free_data` (with `PNG_FREE_TRNS` or `PNG_FREE_PLTE`) frees the buffer through `info_ptr` while the corresponding `png_ptr` pointer remains dangling. Subsequent row-transform functions dereference and, in some code paths, write to the freed memory. A second call to `png_set_tRNS` or `png_set_PLTE` has the same effect, because both functions call `png_free_data` internally before reallocating the `info_ptr` buffer. Version 1.6.56 fixes the issue.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-03-31. 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-33416 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-33416?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-33416?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-33416 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.2.1 before 1.6.56

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libpng1.61.6.37-3+deb11u3DLA-4521-1
Debian12libpng1.61.6.39-2+deb12u4DEBIAN-CVE-2026-33416 DSA-6189-1
Debian13libpng1.61.6.48-1+deb13u4DEBIAN-CVE-2026-33416 DSA-6189-1
Debian14libpng1.61.6.56-1DEBIAN-CVE-2026-33416
Ubuntu22.04:LTSlibpng1.61.6.37-3ubuntu0.5UBUNTU-CVE-2026-33416
Ubuntu24.04:LTSlibpng1.61.6.43-5ubuntu0.6UBUNTU-CVE-2026-33416
Ubuntu25.10libpng1.61.6.50-1ubuntu0.5UBUNTU-CVE-2026-33416
UbuntuPro:14.04:LTSlibpng1.2.50-1ubuntu2.14.04.3+esm2UBUNTU-CVE-2026-33416
UbuntuPro:16.04:LTSlibpng1.2.54-1ubuntu1.1+esm3UBUNTU-CVE-2026-33416
UbuntuPro:16.04:LTSlibpng1.61.6.20-2ubuntu0.1~esm4UBUNTU-CVE-2026-33416
UbuntuPro:18.04:LTSlibpng1.61.6.34-1ubuntu0.18.04.2+esm3UBUNTU-CVE-2026-33416
UbuntuPro:20.04:LTSlibpng1.61.6.37-2ubuntu0.1~esm3UBUNTU-CVE-2026-33416
Red Hatenterprise_linux:8::appstreamfirefox, firefox-debuginfo, firefox-debugsource0:140.9.1-1.el8_10RHSA-2026:8052
Red Hatenterprise_linux:8::appstreamjava-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 10 more1:21.0.11.0.10-1.el8RHSA-2026:9689
Red Hatenterprise_linux:8::appstreamlibpng12, libpng12-debuginfo, libpng12-debugsource0:1.2.57-7.el8_10RHSA-2026:26348
Red Hatenterprise_linux:8::appstreamlibpng15, libpng15-debuginfo, libpng15-debugsource0:1.5.30-9.el8_10RHSA-2026:26347
Red Hatenterprise_linux:8::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:140.9.1-1.el8_10RHSA-2026:9345
Red Hatenterprise_linux:8::appstream, rhel_aus:8.4::appstream, rhel_aus:8.6::appstream and 3 morejava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 10 more1:1.8.0.492.b09-1.el8RHSA-2026:9683
Red Hatenterprise_linux:8::appstream, rhel_aus:8.6::appstream, rhel_e4s:8.6::appstream and 1 morejava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.19.0.10-1.el8RHSA-2026:9686
Red Hatenterprise_linux:8::baseoslibpng, libpng-devel, libpng-debuginfo and 3 more2:1.6.34-11.el8_10RHSA-2026:29898
Red Hatenterprise_linux:8::crbjava-1.8.0-openjdk-debuginfo, java-1.8.0-openjdk-fastdebug, java-1.8.0-openjdk-slowdebug and 22 more1:1.8.0.492.b09-1.el8RHSA-2026:9683
Red Hatenterprise_linux:8::crbjava-17-openjdk-debuginfo, java-17-openjdk-fastdebug, java-17-openjdk-slowdebug and 21 more1:17.0.19.0.10-1.el8RHSA-2026:9686
Red Hatenterprise_linux:8::crbjava-21-openjdk-debuginfo, java-21-openjdk-fastdebug, java-21-openjdk-slowdebug and 21 more1:21.0.11.0.10-1.el8RHSA-2026:9689
Red Hatenterprise_linux:8::crbmingw-libpng, mingw32-libpng, mingw64-libpng and 4 more0:1.6.34-3.el8_10RHSA-2026:99225
77 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morelibpng161.6.34-150000.3.22.1SUSE-SU-2026:1323-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6libpng161.6.40-150600.3.17.1SUSE-SU-2026:1368-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 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5libpng161.6.8-15.21.1SUSE-SU-2026:1311-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0libpng161.6.44-160000.6.1SUSE-SU-2026:21138-1
SUSELinux Micro 6.0libpng161.6.43-4.1SUSE-SU-2026:21067-1
SUSELinux Micro 6.0libpng161.6.58-1.1SUSE-SU-2026:23063-1
SUSELinux Micro 6.1libpng161.6.43-slfo.1.1_4.1SUSE-SU-2026:21038-1
SUSELinux Micro 6.1libpng161.6.58-slfo.1.1_1.1SUSE-SU-2026:23514-1
SUSELinux Micro 6.2libpng161.6.44-160000.6.1SUSE-SU-2026:21000-1
openSUSELeap 15.6libpng161.6.40-150600.3.17.1SUSE-SU-2026:1368-1
openSUSELeap 16.0libpng161.6.44-160000.6.1openSUSE-SU-2026:20466-1
openSUSETumbleweedlibpng121.2.59-5.1openSUSE-SU-2026:10640-1
openSUSETumbleweedlibpng161.6.56-1.1openSUSE-SU-2026:10451-1
AlmaLinux8firefox140.9.1-1.el8_10.alma.1ALSA-2026:8052
AlmaLinux8java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 17 more1:1.8.0.492.b09-1.el8ALSA-2026:9683
AlmaLinux8java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.19.0.10-1.el8ALSA-2026:9686
AlmaLinux8java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.11.0.10-1.el8ALSA-2026:9689
AlmaLinux8libpng, libpng-devel2:1.6.34-11.el8_10ALSA-2026:29898
AlmaLinux8libpng121.2.57-7.el8_10ALSA-2026:26348
AlmaLinux8libpng151.5.30-9.el8_10ALSA-2026:26347
AlmaLinux8mingw32-libpng, mingw64-libpng, mingw32-libpng-static and 1 more1.6.34-3.el8_10ALSA-2026:99225
AlmaLinux8thunderbird140.9.1-1.el8_10.alma.1ALSA-2026:9345
AlmaLinux9firefox, firefox-x11140.9.1-1.el9_7.alma.1ALSA-2026:7671
AlmaLinux9java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 14 more1:1.8.0.492.b09-2.el9.alma.1ALSA-2026:9683
AlmaLinux9java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.19.0.10-2.el9.alma.1ALSA-2026:9686
12 more for AlmaLinux in the JSON.
Rocky Linux8firefox0:140.9.1-1.el8_10RLSA-2026:8052
Rocky Linux8libpng2:1.6.34-11.el8_10RLSA-2026:29898
Rocky Linux8libpng120:1.2.57-7.el8_10RLSA-2026:26348
Rocky Linux8libpng150:1.5.30-9.el8_10RLSA-2026:26347
Rocky Linux8mingw32-libpng, mingw64-libpng, mingw32-libpng-static and 3 more0:1.6.34-3.el8_10RLSA-2026:99225
Rocky Linux8thunderbird0:140.9.1-1.el8_10RLSA-2026:9345
Rocky Linux9firefox0:140.9.1-1.el9_7RLSA-2026:7671
Rocky Linux9libpng2:1.6.37-12.el9_7.4RLSA-2026:18028
Rocky Linux9libpng2:1.6.37-15.el9_8.2RLSA-2026:28255
Rocky Linux9libpng150:1.5.30-15.el9_8.1RLSA-2026:28244
Rocky Linux9thunderbird0:140.9.1-1.el9_7RLSA-2026:8459
Rocky Linux10firefox0:140.9.1-1.el10_1RLSA-2026:7672
4 more for Rocky Linux in the JSON.
Alpinev3.20, v3.21, v3.22 and 2 morelibpng1.6.56-r0ALPINE-CVE-2026-33416
Azure Linux3fltkno fix listedAZL-81315
Azure Linux3gdalno fix listedAZL-81324
Azure Linux3libpng1.6.56-1AZL-80990
Azure Linux3libpng12no fix listedAZL-81330
Azure Linux3libpng15no fix listedAZL-81333
Azure Linux3openjpeg2no fix listedAZL-81336
Azure Linux3optipngno fix listedAZL-81345
Alpaquita23, 25, streamlibpng1.6.56-r0BELL-CVE-2026-33416
BellSoft Hardened Containers23, 25, streamlibpng1.6.56-r0BELL-CVE-2026-33416

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; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; 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 mitigation

To reduce exposure, avoid processing untrusted PNG image files with applications that utilize libpng. Restricting the source of PNG images to trusted origins can limit the attack surface.

ProductPackageStateAdvisory
OPENJDK ELS 11.0.31java-11-openjdk-portableFixed 2026-04-22RHSA-2026:9255
Red Hat Build of OpenJDK 17.0.9java-17-openjdk-portableFixed 2026-04-23RHSA-2026:9687
Red Hat Build of OpenJDK 21.0.11java-21-openjdk-portableFixed 2026-04-23RHSA-2026:9690
Red Hat Build of OpenJDK 25.0.3java-25-openjdk-portableFixed 2026-04-23RHSA-2026:9694
Red Hat Build of OpenJDK 8u492java-1.8.0-openjdk-portableFixed 2026-04-23RHSA-2026:9684
Red Hat Enterprise Linux 10libpng-2:1.6.40-8.el10_1.4Fixed 2026-05-18RHSA-2026:18064
Red Hat Enterprise Linux 10firefox-0:140.9.1-1.el10_1Fixed 2026-04-13RHSA-2026:7672
Red Hat Enterprise Linux 10thunderbird-0:140.9.1-1.el10_1Fixed 2026-04-22RHSA-2026:9638
Red Hat Enterprise Linux 10java-21-openjdk-1:21.0.11.0.10-2.el10_2Fixed 2026-04-24RHSA-2026:9689
Red Hat Enterprise Linux 10java-25-openjdk-1:25.0.3.0.9-1.el10_2Fixed 2026-04-22RHSA-2026:9693
Red Hat build of OpenJDK 11 ELSjava-17-openjdkAffected
Red Hat build of OpenJDK 11 ELSjava-21-openjdkNot affected
Red Hat build of OpenJDK 11 ELSjava-21-openjdk-vanillaNot affected
Red Hat build of OpenJDK 11 ELSjava-25-openjdk-portableNot affected
Red Hat build of OpenJDK 17java-17-openjdkAffected
Red Hat build of OpenJDK 17java-21-openjdkNot affected
Red Hat build of OpenJDK 17java-21-openjdk-vanillaNot affected
Red Hat build of OpenJDK 17java-25-openjdk-portableNot affected
Red Hat build of OpenJDK 1.8java-17-openjdkAffected
Red Hat build of OpenJDK 1.8java-21-openjdkAffected
114 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-33416.

References

Check your stackJSON