{"id":"UBUNTU-CVE-2025-64506","details":"LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From version 1.6.0 to before 1.6.51, a heap buffer over-read vulnerability exists in libpng's png_write_image_8bit function when processing 8-bit images through the simplified write API with convert_to_8bit enabled. The vulnerability affects 8-bit grayscale+alpha, RGB/RGBA, and images with incomplete row data. A conditional guard incorrectly allows 8-bit input to enter code expecting 16-bit input, causing reads up to 2 bytes beyond allocated buffer boundaries. This issue has been patched in version 1.6.51.","modified":"2026-04-22T20:00:34.999746Z","published":"2025-11-25T00:15:00Z","related":["USN-7924-1"],"upstream":["CVE-2025-64506"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-64506"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-64506"},{"type":"REPORT","url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-qpr4-xm66-hww6"},{"type":"REPORT","url":"https://github.com/pnggroup/libpng/pull/749"},{"type":"REPORT","url":"https://github.com/pnggroup/libpng/commit/2bd84c019c300b78e811743fbcddb67c9d9bf821"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2025/11/22/1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7924-1"}],"affected":[{"package":{"name":"libpng1.6","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libpng1.6@1.6.20-2ubuntu0.1~esm2?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.20-2ubuntu0.1~esm2"}]}],"versions":["1.6.20-2","1.6.20-2ubuntu0.1~esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libpng16-16","binary_version":"1.6.20-2ubuntu0.1~esm2"},{"binary_name":"libpng16-devtools","binary_version":"1.6.20-2ubuntu0.1~esm2"},{"binary_name":"libpng16-tools","binary_version":"1.6.20-2ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64506.json"}},{"package":{"name":"libpng1.6","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libpng1.6@1.6.34-1ubuntu0.18.04.2+esm1?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.34-1ubuntu0.18.04.2+esm1"}]}],"versions":["1.6.34-1","1.6.34-1ubuntu0.18.04.1","1.6.34-1ubuntu0.18.04.2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"1.6.34-1ubuntu0.18.04.2+esm1","binary_name":"libpng-tools"},{"binary_name":"libpng16-16","binary_version":"1.6.34-1ubuntu0.18.04.2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64506.json"}},{"package":{"name":"libpng1.6","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/libpng1.6@1.6.37-2ubuntu0.1~esm1?arch=source&distro=esm-infra/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.37-2ubuntu0.1~esm1"}]}],"versions":["1.6.37-1","1.6.37-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"libpng-tools","binary_version":"1.6.37-2ubuntu0.1~esm1"},{"binary_name":"libpng16-16","binary_version":"1.6.37-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64506.json"}},{"package":{"name":"libpng1.6","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libpng1.6@1.6.37-3ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.37-3ubuntu0.1"}]}],"versions":["1.6.37-3build4","1.6.37-3build5"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libpng-tools","binary_version":"1.6.37-3ubuntu0.1"},{"binary_name":"libpng16-16","binary_version":"1.6.37-3ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64506.json"}},{"package":{"name":"libpng1.6","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libpng1.6@1.6.43-5ubuntu0.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.43-5ubuntu0.1"}]}],"versions":["1.6.40-1","1.6.40-2","1.6.40-3","1.6.42-1","1.6.43-1","1.6.43-3","1.6.43-5build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libpng-tools","binary_version":"1.6.43-5ubuntu0.1"},{"binary_name":"libpng16-16t64","binary_version":"1.6.43-5ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64506.json"}},{"package":{"name":"libpng1.6","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libpng1.6@1.6.50-1ubuntu0.1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.50-1ubuntu0.1"}]}],"versions":["1.6.47-1.1","1.6.48-1","1.6.49-1~exp1","1.6.50-1~exp1","1.6.50-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libpng-tools","binary_version":"1.6.50-1ubuntu0.1"},{"binary_name":"libpng16-16t64","binary_version":"1.6.50-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64506.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}