Amazon Linux 2 : libpng, --advisory ALAS2-2025-3112 (ALAS-2025-3112)

high Nessus Plugin ID 281800

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of libpng installed on the remote host is prior to 1.5.13-8. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2025-3112 advisory.

A heap buffer over-read vulnerability exists in libpng's png_do_quantize function when processing PNG files with malformed palette indices. The vulnerability occurs when palette_lookup array bounds are not validated against externally-supplied image data, allowing an attacker to craft a PNG file with out-of- range palette indices that trigger out-of-bounds memory access. (CVE-2025-64505)

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, an out-of-bounds read vulnerability exists in png_image_read_composite when processing palette images with PNG_FLAG_OPTIMIZE_ALPHA enabled. The palette compositing code in png_init_read_transformations incorrectly applies background compositing during premultiplication, violating the invariant component <= alpha x 257 required by the simplified PNG API. This issue has been patched in version 1.6.51. (CVE-2025-64720)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update libpng' or or 'yum update --advisory ALAS2-2025-3112' to update your system.

See Also

https://alas.aws.amazon.com//AL2/ALAS2-2025-3112.html

https://alas.aws.amazon.com/faqs.html

https://explore.alas.aws.amazon.com/CVE-2025-64505.html

https://explore.alas.aws.amazon.com/CVE-2025-64720.html

Plugin Details

Severity: High

ID: 281800

File Name: al2_ALAS-2025-3112.nasl

Version: 1.1

Type: local

Agent: unix

Published: 1/5/2026

Updated: 1/5/2026

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.0

CVSS v2

Risk Factor: High

Base Score: 8.5

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:C

CVSS Score Source: CVE-2025-64720

CVSS v3

Risk Factor: High

Base Score: 7.1

Temporal Score: 6.4

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:libpng-debuginfo, p-cpe:/a:amazon:linux:libpng, p-cpe:/a:amazon:linux:libpng-static, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:libpng-devel

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/5/2026

Vulnerability Publication Date: 11/24/2025

Reference Information

CVE: CVE-2025-64505, CVE-2025-64720