Amazon Linux 2023libpng、libpng-devel、libpng-static (ALAS2023-2025-1306)

high Nessus Plugin ID 277802

概要

遠端 Amazon Linux 2023 主機缺少一個安全性更新。

說明

因此,會受到 ALAS2023-2025-1306 公告中所提及的多個弱點影響。

在處理含有格式錯誤之調色盤索引的 PNG 檔案時libpng 的 png_do_quantize 函式中存在一個堆積緩衝區過度讀取弱點。未依據外部提供的影像資料驗證 palette_lookup 陣列邊界時會發生此弱點允許攻擊者製作含有會觸發超出邊界記憶體存取之超出範圍調色盤索引的 PNG 檔案。 (CVE-2025-64505)

LIBPNG 是在讀取、建立及操控 PNG (可攜式網路圖形) 點陣影像檔的應用程式中使用的參照程式庫。從 1.6.0 到 1.6.51之前的版本在啟用 convert_to_8bit 的情況下透過簡化寫入 API 處理 8 位元影像時libpng 的 png_write_image_8bit 函式中存在一個堆積緩衝區過度讀取弱點。此弱點會影響 8 位元的 grayscale+alpha、RGB/RGBA 和列資料不完整的影像。條件防護錯誤地允許 8 位元輸入輸入需要 16 位元輸入的程式碼進而導致讀取超出配置的緩衝區邊界最多 2 個位元組。此問題已在 1.6.51 版中修正。(CVE-2025-64506)

LIBPNG 是在讀取、建立及操控 PNG (可攜式網路圖形) 點陣影像檔的應用程式中使用的參照程式庫。從 1.6.0 到 1.6.51之前的版本在啟用 PNG_FLAG_OPTIMIZE_ALPHA 的情況下處理調色盤影像時png_image_read_composite 存在一個超出邊界讀取弱點。png_init_read_transformations 中的調色盤複合程式碼在預乘法期間未正確套用背景複合違反了簡化 PNG API 所要求的 invariant 元件 <= alpha x 257 規定。此問題已在 1.6.51 版中修正。(CVE-2025-64720)

以 8 位元輸出格式處理 16 位元交錯式 PNG 時libpng 簡化了 API 函式 png_image_finish_read 中的堆積緩衝區溢位。攻擊者特製的交錯式 PNG 檔案造成堆積寫入超出配置的緩衝區邊界。 (CVE-2025-65018)

Tenable 已直接從所測試產品的安全公告擷取前置描述區塊。

請注意,Nessus 並未測試這些問題,而是僅依據應用程式自我報告的版本號碼作出判斷。

解決方案

執行「dnf update libpng --releasever 2023.9.20251208」或 或「dnf update --advisory ALAS2023-2025-1306 --releasever 2023.9.20251208」以更新系統。

另請參閱

https://alas.aws.amazon.com//AL2023/ALAS2023-2025-1306.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-64506.html

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

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

Plugin 詳細資訊

嚴重性: High

ID: 277802

檔案名稱: al2023_ALAS2023-2025-1306.nasl

版本: 1.1

類型: local

代理程式: unix

已發布: 2025/12/9

已更新: 2025/12/9

支援的感應器: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

風險資訊

VPR

風險因素: Medium

分數: 6.0

CVSS v2

風險因素: High

基本分數: 8.5

時間性分數: 6.7

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

CVSS 評分資料來源: CVE-2025-64720

CVSS v3

風險因素: High

基本分數: 7.1

時間性分數: 6.4

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

時間媒介: CVSS:3.0/E:P/RL:O/RC:C

CVSS 評分資料來源: CVE-2025-65018

弱點資訊

CPE: p-cpe:/a:amazon:linux:libpng, p-cpe:/a:amazon:linux:libpng-debuginfo, p-cpe:/a:amazon:linux:libpng-devel, p-cpe:/a:amazon:linux:libpng-static, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:libpng-debugsource, p-cpe:/a:amazon:linux:libpng-devel-debuginfo, p-cpe:/a:amazon:linux:libpng-tools, p-cpe:/a:amazon:linux:libpng-tools-debuginfo

必要的 KB 項目: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2025/12/8

弱點發布日期: 2025/11/24

參考資訊

CVE: CVE-2025-64505, CVE-2025-64506, CVE-2025-64720, CVE-2025-65018