# CVE-2026-33416: LIBPNG has use-after-free via pointer aliasing in \`png\_set\_tRNS\` and \`png\_set\_PLTE\`

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.6.56 (CNA); fix release not confirmed
- Status: published
- Published: 2026-03-26 · Modified: 2026-04-01
- Aliases: ALPINE-CVE-2026-33416, SUSE-SU-2026:1311-1, SUSE-SU-2026:1323-1, RHSA-2026:18028, RHSA-2026:18064, RHSA-2026:20548, RHSA-2026:20549, RHSA-2026:20550, RHSA-2026:20551, RHSA-2026:26347, RHSA-2026:26348, RHSA-2026:28244, RHSA-2026:28456, RHSA-2026:28457, RHSA-2026:28458, RHSA-2026:29016, RHSA-2026:29018, RHSA-2026:29019, RHSA-2026:29020, RHSA-2026:29021, RHSA-2026:29022, RHSA-2026:29898, RHSA-2026:29900, RHSA-2026:29901, RHSA-2026:29902, RHSA-2026:43702, RHSA-2026:50808, UBUNTU-CVE-2026-33416, DEBIAN-CVE-2026-33416, CGA-cwp4-xxpf-xpmr, CGA-rphj-4j44-3vrq, RHSA-2026:99225
- Record: https://cvemate.com/vulnerability/CVE-2026-33416 · JSON: https://cvemate.com/vulnerability/CVE-2026-33416/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.057%, percentile 65.567%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 43)

- alpine libpng (Alpine Linux): ≥ 1.2.1, \< 1.6.56-r0
- chainguard libpng (Chainguard): \< 1.6.56-r0
- wolfi libpng (Wolfi): \< 1.6.56-r0
- debian libpng1.6 (Debian): \< 1.6.39-2+deb12u4 \| \< 1.6.48-1+deb13u4 \| \< 1.6.56-1
- ubuntu libpng (Ubuntu): \< 1.2.50-1ubuntu2.14.04.3+esm2 \| \< 1.2.54-1ubuntu1.1+esm3
- ubuntu libpng1.6 (Ubuntu): \< 1.6.20-2ubuntu0.1~esm4 \| \< 1.6.34-1ubuntu0.18.04.2+esm3 \| \< 1.6.37-2ubuntu0.1~esm3 \| \< 1.6.37-3ubuntu0.5 \| \< 1.6.43-5ubuntu0.6 \| \< 1.6.50-1ubuntu0.5
- libpng libpng: ≥ 1.2.1, \< 1.6.56
- pnggroup libpng: ≥ 1.2.1, \< 1.6.56
- redhat libpng (Red Hat): \< 2:1.6.37-12.el9\_7.4 \| \< 2:1.6.40-8.el10\_1.4 \| \< 2:1.6.37-12.el9\_6.4 \| \< 2:1.6.37-12.el9\_4.4 \| \< 2:1.6.37-12.el9\_2.4 \| \< 2:1.6.40-8.el10\_0.4 \| \< 2:1.6.34-11.el8\_10 \| \< 2:1.6.34-8.el8\_8.3 \| \< 2:1.6.34-8.el8\_6.3 \| \< 2:1.6.34-8.el8\_4.3 \| \< 2:1.5.13-8.el7\_9.3
- redhat libpng-debuginfo (Red Hat): \< 2:1.6.37-12.el9\_7.4 \| \< 2:1.6.40-8.el10\_1.4 \| \< 2:1.6.37-12.el9\_6.4 \| \< 2:1.6.37-12.el9\_4.4 \| \< 2:1.6.37-12.el9\_2.4 \| \< 2:1.6.40-8.el10\_0.4 \| \< 2:1.6.34-11.el8\_10 \| \< 2:1.6.34-8.el8\_8.3 \| \< 2:1.6.34-8.el8\_6.3 \| \< 2:1.6.34-8.el8\_4.3 \| \< 2:1.5.13-8.el7\_9.3
- redhat libpng-debugsource (Red Hat): \< 2:1.6.37-12.el9\_7.4 \| \< 2:1.6.40-8.el10\_1.4 \| \< 2:1.6.37-12.el9\_6.4 \| \< 2:1.6.37-12.el9\_4.4 \| \< 2:1.6.37-12.el9\_2.4 \| \< 2:1.6.40-8.el10\_0.4 \| \< 2:1.6.34-11.el8\_10 \| \< 2:1.6.34-8.el8\_8.3 \| \< 2:1.6.34-8.el8\_6.3 \| \< 2:1.6.34-8.el8\_4.3
- redhat libpng-devel (Red Hat): \< 2:1.6.37-12.el9\_7.4 \| \< 2:1.6.40-8.el10\_1.4 \| \< 2:1.6.37-12.el9\_6.4 \| \< 2:1.6.37-12.el9\_4.4 \| \< 2:1.6.37-12.el9\_2.4 \| \< 2:1.6.40-8.el10\_0.4 \| \< 2:1.6.34-11.el8\_10 \| \< 2:1.6.34-8.el8\_8.3 \| \< 2:1.6.34-8.el8\_6.3 \| \< 2:1.6.34-8.el8\_4.3 \| \< 2:1.5.13-8.el7\_9.3
- redhat libpng-devel-debuginfo (Red Hat): \< 2:1.6.37-12.el9\_7.4 \| \< 2:1.6.40-8.el10\_1.4 \| \< 2:1.6.37-12.el9\_6.4 \| \< 2:1.6.37-12.el9\_4.4 \| \< 2:1.6.37-12.el9\_2.4 \| \< 2:1.6.40-8.el10\_0.4 \| \< 2:1.6.34-11.el8\_10 \| \< 2:1.6.34-8.el8\_8.3 \| \< 2:1.6.34-8.el8\_6.3 \| \< 2:1.6.34-8.el8\_4.3
- redhat libpng-static (Red Hat): \< 2:1.5.13-8.el7\_9.3
- redhat libpng-tools-debuginfo (Red Hat): \< 2:1.6.37-12.el9\_7.4 \| \< 2:1.6.40-8.el10\_1.4 \| \< 2:1.6.37-12.el9\_6.4 \| \< 2:1.6.37-12.el9\_4.4 \| \< 2:1.6.37-12.el9\_2.4 \| \< 2:1.6.40-8.el10\_0.4 \| \< 2:1.6.34-11.el8\_10 \| \< 2:1.6.34-8.el8\_8.3 \| \< 2:1.6.34-8.el8\_6.3 \| \< 2:1.6.34-8.el8\_4.3
- redhat libpng12 (Red Hat): \< 0:1.2.57-7.el8\_10 \| \< 0:1.2.57-5.el8\_8.2 \| \< 0:1.2.57-5.el8\_6.2 \| \< 0:1.2.57-5.el8\_4.2 \| \< 0:1.2.50-10.el7\_9.2
- redhat libpng12-debuginfo (Red Hat): \< 0:1.2.57-7.el8\_10 \| \< 0:1.2.57-5.el8\_8.2 \| \< 0:1.2.57-5.el8\_6.2 \| \< 0:1.2.57-5.el8\_4.2 \| \< 0:1.2.50-10.el7\_9.2
- redhat libpng12-debugsource (Red Hat): \< 0:1.2.57-7.el8\_10 \| \< 0:1.2.57-5.el8\_8.2 \| \< 0:1.2.57-5.el8\_6.2 \| \< 0:1.2.57-5.el8\_4.2
- redhat libpng12-devel (Red Hat): \< 0:1.2.50-10.el7\_9.2
- redhat libpng15 (Red Hat): \< 0:1.5.30-9.el8\_10 \| \< 0:1.5.30-15.el9\_8.1 \| \< 0:1.5.30-14.el9\_6.2 \| \< 0:1.5.30-14.el9\_4.2 \| \< 0:1.5.30-14.el9\_2.2 \| \< 0:1.5.30-7.el8\_8.2 \| \< 0:1.5.30-7.el8\_6.2 \| \< 0:1.5.30-7.el8\_4.2

## References (first 20 of 71)

- <https://github.com/pnggroup/libpng/security/advisories/GHSA-m4pc-p4q3-4c7j>
- <https://github.com/pnggroup/libpng/pull/824>
- <https://github.com/pnggroup/libpng/commit/23019269764e35ed8458e517f1897bd3c54820eb>
- <https://github.com/pnggroup/libpng/commit/7ea9eea884a2328cc7fdcb3c0c00246a50d90667>
- <https://github.com/pnggroup/libpng/commit/a3a21443ed12bfa1ef46fa0d4fb2b74a0fa34a25>
- <https://github.com/pnggroup/libpng/commit/c1b0318b393c90679e6fa5bc1d329fd5d5012ec1>
- <https://security.alpinelinux.org/vuln/CVE-2026-33416>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20261311-1/>
- <https://bugzilla.suse.com/1260754>
- <https://www.suse.com/security/cve/CVE-2026-33416>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20261323-1/>
- <https://access.redhat.com/errata/RHSA-2026:18028>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2451805>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_18028.json>
- <https://access.redhat.com/security/cve/CVE-2026-33416>
- <https://www.cve.org/CVERecord?id=CVE-2026-33416>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33416>
- <https://access.redhat.com/errata/RHSA-2026:18064>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_18064.json>

---

Data as of 2026-12-05T02:50:07.326Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
