Use-after-free in libpng - CVE-2026-33416

 

Use-after-free in libpng - CVE-2026-33416

Published: April 9, 2026


Vulnerability identifier: #VU125601
CSH Severity: High
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-33416
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to use-after-free in png_set_tRNS and png_set_PLTE when processing a crafted PNG file and subsequent decoding after png_free_data() or repeated setter calls. A remote attacker can supply a specially crafted PNG file to execute arbitrary code.

User interaction is required to open or process the crafted PNG file, and exploitation affects applications that free PNG data between png_read_info() and png_read_update_info().


Affected software

libpng
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 12 SP5
Debian Linux
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
SUSE Linux Micro
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Anolis OS
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Ubuntu
Basesystem Module
openSUSE Leap
openEuler
Fedora
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
libpng (Ubuntu package)
libpng12 (Red Hat package)
libpng12-doc
libpng12
libpng12-0-debuginfo-32bit
libpng12-compat-devel
libpng12-devel
libpng12-0
libpng12-0-debuginfo
libpng12-debugsource
libpng12-0-32bit
libpng (Red Hat package)
libpng15-15
libpng15-debugsource
libpng15-15-debuginfo
libpng15 (Red Hat package)
libpng15-doc
libpng15
libpng16-16-debuginfo-32bit
libpng16-compat-devel
libpng16-16-debuginfo
libpng16-devel
libpng16-16
libpng16-16-32bit
libpng16-debugsource
libpng-static
libpng-devel
libpng
libpng16-16-32bit-debuginfo
libpng1.6 (Ubuntu package)
libpng1.6 (Debian package)
libpng-tools
libpng-doc
libpng-debuginfo
libpng-debugsource
libpng-help
libpng16-tools-debuginfo
libpng16-tools
libpng16-compat-devel-32bit
libpng16-devel-32bit
libpng16-16-64bit-debuginfo
libpng16-16-64bit
libpng16-compat-devel-64bit
libpng16-devel-64bit
mingw-libpng
java-25-openjdk (Red Hat package)
firefox (Red Hat package)
thunderbird (Red Hat package)
firefox
thunderbird

How to mitigate CVE-2026-33416

Install security update from vendor's website.

libpng - update to 1.6.56
libpng (Ubuntu package) - addressed in versions 1.2.50-1ubuntu2.14.04.3+esm2, 1.2.54-1ubuntu1.1+esm3, 1.6.20-2ubuntu0.1~esm4, 1.6.34-1ubuntu0.18.04.2+esm3, 1.6.37-2ubuntu0.1~esm3, 1.6.37-3ubuntu0.6
libpng12 (Red Hat package) - addressed in versions 1.2.50-10.el7_9.2, 1.2.57-5.el8_4.2, 1.2.57-5.el8_6.2, 1.2.57-7.el8_10
libpng12-doc - update to 1.2.57-7.0.1
libpng12 - update to 1.2.57-7.0.1
libpng12-0-debuginfo-32bit - update to 1.2.59-20.14.1
libpng12-compat-devel - update to 1.2.59-20.14.1
libpng12-devel - addressed in versions 1.2.59-20.14.1, 1.2.59-150000.4.11.1
libpng12-0 - addressed in versions 1.2.59-20.14.1, 1.2.59-150000.4.11.1
libpng12-0-debuginfo - addressed in versions 1.2.59-20.14.1, 1.2.59-150000.4.11.1
libpng12-debugsource - addressed in versions 1.2.59-20.14.1, 1.2.59-150000.4.11.1
libpng12-0-32bit - update to 1.2.59-20.14.1
libpng (Red Hat package) - addressed in versions 1.5.13-8.el7_9.3, 1.6.34-8.el8_4.3, 1.6.34-8.el8_6.3, 1.6.34-8.el8_8.3, 1.6.37-12.el9_7.4
libpng15-15 - update to 1.5.22-10.10.1
libpng15-debugsource - update to 1.5.22-10.10.1
libpng15-15-debuginfo - update to 1.5.22-10.10.1
libpng15 (Red Hat package) - addressed in versions 1.5.30-7.el8_6.2, 1.5.30-9.el8_10, 1.5.30-14.el9_2.2, 1.5.30-14.el9_6.2
libpng15-doc - update to 1.5.30-9.0.1
libpng15 - update to 1.5.30-9.0.1
libpng16-16-debuginfo-32bit - update to 1.6.8-15.21.1
libpng16-compat-devel - addressed in versions 1.6.8-15.21.1, 1.6.34-150000.3.22.1, 1.6.40-150600.3.17.1
libpng16-16-debuginfo - addressed in versions 1.6.8-15.21.1, 1.6.34-150000.3.22.1, 1.6.40-150600.3.17.1, 1.6.58-1.1
libpng16-devel - addressed in versions 1.6.8-15.21.1, 1.6.34-150000.3.22.1, 1.6.40-150600.3.17.1
libpng16-16 - addressed in versions 1.6.8-15.21.1, 1.6.34-150000.3.22.1, 1.6.40-150600.3.17.1, 1.6.58-1.1
libpng16-16-32bit - addressed in versions 1.6.8-15.21.1, 1.6.34-150000.3.22.1, 1.6.40-150600.3.17.1
libpng16-debugsource - addressed in versions 1.6.8-15.21.1, 1.6.34-150000.3.22.1, 1.6.40-150600.3.17.1, 1.6.58-1.1
libpng-static - addressed in versions 1.6.34-11, 1.6.40-6
libpng-devel - addressed in versions 1.6.34-11, 1.6.40-6
libpng - addressed in versions 1.6.34-11, 1.6.40-6
libpng16-16-32bit-debuginfo - addressed in versions 1.6.34-150000.3.22.1, 1.6.40-150600.3.17.1
libpng1.6 (Ubuntu package) - addressed in versions 1.6.37-3ubuntu0.5, 1.6.43-5ubuntu0.6, 1.6.50-1ubuntu0.5
libpng1.6 (Debian package) - addressed in versions 1.6.39-2+deb12u4, 1.6.48-1+deb13u4
libpng-tools - update to 1.6.40-6
libpng-doc - update to 1.6.40-6
libpng - update to 1.6.40-8
libpng-debuginfo - update to 1.6.40-8
libpng-debugsource - update to 1.6.40-8
libpng-devel - update to 1.6.40-8
libpng-static - update to 1.6.40-8
libpng-tools - update to 1.6.40-8
libpng-help - update to 1.6.40-8
libpng16-tools-debuginfo - update to 1.6.40-150600.3.17.1
libpng16-tools - update to 1.6.40-150600.3.17.1
libpng16-compat-devel-32bit - update to 1.6.40-150600.3.17.1
libpng16-devel-32bit - update to 1.6.40-150600.3.17.1
libpng16-16-64bit-debuginfo - update to 1.6.40-150600.3.17.1
libpng16-16-64bit - update to 1.6.40-150600.3.17.1
libpng16-compat-devel-64bit - update to 1.6.40-150600.3.17.1
libpng16-devel-64bit - update to 1.6.40-150600.3.17.1
mingw-libpng - addressed in versions 1.6.56-1.fc42, 1.6.56-1.fc43, 1.6.56-1.fc44
libpng - addressed in versions 1.6.56-1.fc42, 1.6.56-1.fc43, 1.6.56-1.fc44
java-25-openjdk (Red Hat package) - addressed in versions 25.0.3.0.9-1.el9, 25.0.3.0.9-1.el10_2
firefox (Red Hat package) - addressed in versions 140.9.1-1.el8_2, 140.9.1-1.el8_4, 140.9.1-1.el8_6, 140.9.1-1.el8_8, 140.9.1-1.el8_10, 140.9.1-1.el9_0, 140.9.1-1.el9_2, 140.9.1-1.el9_4, 140.9.1-1.el9_6, 140.9.1-1.el9_7, 140.9.1-1.el10_0, 140.9.1-1.el10_1, 140.9.1-2.el7_9
thunderbird (Red Hat package) - addressed in versions 140.9.1-1.el8_4, 140.9.1-1.el8_6, 140.9.1-1.el8_8, 140.9.1-1.el8_10, 140.9.1-1.el9_0, 140.9.1-1.el9_2, 140.9.1-1.el9_4, 140.9.1-1.el9_6, 140.9.1-1.el9_7, 140.9.1-1.el10_0, 140.9.1-1.el10_1
firefox - update to 140.9.1-1.0.1
thunderbird - update to 140.12.0-1.0.1

External References

Related Security Bulletins