Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pnggroup | libpng | >= 1.0.9, < 1.6.57 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libpng1.6 | 1.6.57-1 | — |
| Debian 13 | libpng1.6 | 1.6.48-1+deb13u5 | — |
| Debian 12 | libpng1.6 | 1.6.39-2+deb12u5 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | libpng1.6 | 1.6.50-1ubuntu0.5 | — |
| Ubuntu 24.04 LTS | libpng1.6 | 1.6.43-5ubuntu0.6 | — |
| Ubuntu 22.04 LTS | libpng1.6 | 1.6.37-3ubuntu0.5 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | libpng1.6 | 1.6.37-2ubuntu0.1~esm3 | — |
| Ubuntu Pro 18.04 LTS | libpng1.6 | 1.6.34-1ubuntu0.18.04.2+esm3 | — |
| Ubuntu Pro 16.04 LTS | libpng | 1.2.54-1ubuntu1.1+esm3 | — |
| Ubuntu Pro 16.04 LTS | libpng1.6 | 1.6.20-2ubuntu0.1~esm4 | — |
| Ubuntu Pro 14.04 LTS | libpng | 1.2.50-1ubuntu2.14.04.3+esm2 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | libpng +3 | 1.6.57-0.1.hum1 | RHSA-2026:13719 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | libpng16 | 1.6.40-150600.3.20.1 | SUSE-SU-2026:1602-1 |
| SLES 12 SP5 | libpng15 | 1.5.22-10.10.1 | SUSE-SU-2026:1500-1 |
| SLES 12 SP5 | libpng16 | 1.6.8-15.24.1 | SUSE-SU-2026:1601-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 6.2 | libpng16 | 1.6.44-160000.7.1 | SUSE-SU-2026:21239-1 |
| SLE Micro 6.1 | libpng16 | 1.6.43-slfo.1.1_5.1 | SUSE-SU-2026:23514-1, SUSE-SU-2026:21262-1 |
| SLE Micro 6.0 | libpng16 | 1.6.43-5.1 | SUSE-SU-2026:23063-1, SUSE-SU-2026:21251-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libpng12 | 1.2.59-5.1 | openSUSE-SU-2026:10640-1 |
| openSUSE Tumbleweed | libpng16 | 1.6.57-1.1 | openSUSE-SU-2026:10564-1 |
| openSUSE Leap 16.0 | libpng16 | 1.6.44-160000.7.1 | openSUSE-SU-2026:20593-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libpng | 1.6.57-r0 | — |
| Alpine v3.23 | libpng | 1.6.57-r0 | — |
| Alpine v3.22 | libpng | 1.6.57-r0 | — |
| Alpine v3.21 | libpng | 1.6.57-r0 | — |
| Alpine v3.20 | libpng | 1.6.57-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | libpng +3 | 2:1.6.37-10.amzn2023.0.13 | ALAS2023-2026-1670 |
| Amazon Linux 2 | libpng +2 | 2:1.5.13-8.amzn2.0.9 | ALAS2-2026-3266 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | fltk +5 | No fix yet | — |
| Azure Linux 3 | libpng | 1.6.57-1 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | libpng | 1.6.57-r0 | — |
Advisories 15
- RHSA-2026:13719 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- WID-SEC-2026-1023 libpng: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Sep 15, 2026
- SUSE-SU-2026:23514-1 Security update for libpng16 SUSE / openSUSE Security Updates · Sep 15, 2026
- SUSE-SU-2026:23063-1 Security update for libpng16 SUSE / openSUSE Security Updates · Aug 12, 2026
- ALAS2023-2026-1670 Moderate: libpng security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · May 13, 2026
- ALAS2-2026-3266 Moderate: libpng security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 29, 2026
- openSUSE-SU-2026:10640-1 libpng12-0-1.2.59-5.1 on GA media SUSE / openSUSE Security Updates · Apr 29, 2026
- SUSE-SU-2026:1602-1 Security update for libpng16 SUSE / openSUSE Security Updates · Apr 25, 2026
- SUSE-SU-2026:1601-1 Security update for libpng16 SUSE / openSUSE Security Updates · Apr 25, 2026
- SUSE-SU-2026:21262-1 Security update for libpng16 SUSE / openSUSE Security Updates · Apr 24, 2026
- SUSE-SU-2026:21251-1 Security update for libpng16 SUSE / openSUSE Security Updates · Apr 24, 2026
- SUSE-SU-2026:21239-1 Security update for libpng16 SUSE / openSUSE Security Updates · Apr 23, 2026
- openSUSE-SU-2026:20593-1 Security update for libpng16 SUSE / openSUSE Security Updates · Apr 23, 2026
- SUSE-SU-2026:1500-1 Security update for libpng15 SUSE / openSUSE Security Updates · Apr 22, 2026
- openSUSE-SU-2026:10564-1 libpng16-16-1.6.57-1.1 on GA media SUSE / openSUSE Security Updates · Apr 17, 2026
References
- https://github.com/pnggroup/libpng/security/advisories/GHSA-6fr7-g8h7-v645
- https://github.com/pnggroup/libpng/issues/836
- https://github.com/pnggroup/libpng/issues/837
- https://github.com/pnggroup/libpng/commit/398cbe3df03f4e11bb031e07f416dfdde3684e8a
- https://github.com/pnggroup/libpng/commit/55d20aaa322c9274491cda82c5cd4f99b48c6bcc