CVE-2026-46675: libpng 1.6.59: Use-after-fe vulnerability fixed: CVE-2026-46675

Published Sep 29, 2026
·
Updated

A use-after-free vulnerability was found in libpng's sequential reader (versions 1.6.0 through 1.6.58). When an application calls pngreadend after pngreadinfo without first reading image rows, crafted zTXt, iTXt, or iCCP chunks can cause libpng to abandon decompression while zlib still expects more input, leaving a stale pointer and non-zero input count in the zlib stream. When pngreadend runs, it resumes decompression from that dangling pointer.

Two variants exist: 1. Heap use-after-free (zTXt/iTXt): The stale pointer references libpng's chunk read buffer. If a subsequent chunk requires more space, the buffer gets freed, and the later read becomes a heap use-after-free. 2. Stack use-after-return (iCCP): The pointer references local arrays of pnghandleiCCP, resulting in a stack use-after-return read.

Decompression can be abandoned due to invalid window size in the zlib header, decompressed data exceeding libpng's size limit, or an ICC profile that fails validation.

The dangling pointer is read-only; decompressed bytes go to a discarded scratch buffer, so no data is disclosed or corrupted. The worst outcome is a crash when freed heap memory is inaccessible.

Applications are vulnerable if they use the sequential read API and call pngreadend before any of pngreadupdateinfo, pngstartreadimage, pngreadrow, pngreadrows, or pngreadimage. Applications that read image rows before calling pngreadend, or use pngreadpng, the simplified API (pngimage), or the progressive reader (pngprocessdata) are not affected.

Upstream advisory: https://github.com/pnggroup/libpng/security/advisories/GHSA-qvg3-h654-xq3j Upstream fix: https://github.com/pnggroup/libpng/commit/aa77ef38c17ab2fc1b41bec09fb973c6a386641d

Other sources

Use-after-free of zlib input in pngreadend after incomplete zTXt, iTXt or iCCP decompression

— Debian

Affected Software

2 affected componentsFixes available
libpng LIBPNG>=1.6.0<=1.6.58
debian/libpng1.6<=1.6.39-2+deb12u5, <=1.6.48-1+deb13u5
1.6.39-2+deb12u61.6.48-1+deb13u61.6.59-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libpng1.6 to a version that resolves this vulnerability.

    Fixed in 1.6.39-2+deb12u6Fixed in 1.6.48-1+deb13u6Fixed in 1.6.59-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.6.59
  3. Compensating control

    For applications using libpng’s sequential read API, read image rows before calling png_read_end.

Event History

Oct 15, 2026
Data Sourced
via Red Hat·10:13 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

Which libpng release includes the fix?

The vulnerability is fixed in libpng 1.6.59.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203