Amazon Linux 2:rust (ALAS-2022-1816)

critical Nessus Plugin ID 163234

概要

遠端 Amazon Linux 2 主機缺少安全性更新。

說明

遠端主機上安裝的 rust 版本低於 1.56.1-1。因此,會受到 ALAS2-2022-1816 公告中所提及的多個弱點影響。

- 在 Rust 1.52.0 之前版本標準程式庫中,如果借用的字串在長度檢查後發生變更,則對合併字串執行最佳化可造成未初始化的位元組遭到洩漏 (或程式損毀)。(CVE-2020-36323)

- 在 Rust 1.52.0 版之前的標準程式庫中,Zip 實作有一個錯誤的安全性問題。當基礎迭代器發生錯誤時 (在某些情況下),
程式會針對相同的索引多次呼叫 __iterator_get_unchecked()。由於未滿足 TrustedRandomAccess 特質的安全性需求,此錯誤可導致記憶體安全違規。(CVE-2021-28876)

- 在 Rust 1.52.0 之前版本的標準程式庫中,next_back() 和 next() 一起使用時,Zip 實作會針對相同的索引 (在某些情況下) 多次呼叫 __iterator_get_unchecked()。由於未滿足 TrustedRandomAccess 特質的安全性需求,此錯誤可導致記憶體安全違規。(CVE-2021-28878)

- 在 Rust 1.52.0 之前版本的標準程式庫中,由於存在整數溢位問題,Zip 實作會報告大小不正確。再次使用已消耗的 Zip 迭代器時,此錯誤可導致緩衝區溢位。
(CVE-2021-28879)

- 在 Rust 1.52.0 之前版本的標準程式庫中,如果釋放元素錯誤,Vec: : from_iter 函式中會發生重複釋放。(CVE-2021-31162)

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

解決方案

執行「yum update rust」以更新系統。

另請參閱

https://alas.aws.amazon.com/AL2/ALAS-2022-1816.html

https://alas.aws.amazon.com/cve/html/CVE-2020-36323.html

https://alas.aws.amazon.com/cve/html/CVE-2021-28876.html

https://alas.aws.amazon.com/cve/html/CVE-2021-28878.html

https://alas.aws.amazon.com/cve/html/CVE-2021-28879.html

https://alas.aws.amazon.com/cve/html/CVE-2021-31162.html

Plugin 詳細資訊

嚴重性: Critical

ID: 163234

檔案名稱: al2_ALAS-2022-1816.nasl

版本: 1.3

類型: local

代理程式: unix

已發布: 2022/7/15

已更新: 2023/10/17

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: High

基本分數: 7.5

時間分數: 5.9

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

CVSS 評分資料來源: CVE-2021-31162

CVSS v3

風險因素: Critical

基本分數: 9.8

時間分數: 8.8

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

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

弱點資訊

CPE: p-cpe:/a:amazon:linux:cargo, p-cpe:/a:amazon:linux:cargo-doc, p-cpe:/a:amazon:linux:clippy, p-cpe:/a:amazon:linux:rls, p-cpe:/a:amazon:linux:rust, p-cpe:/a:amazon:linux:rust-analysis, p-cpe:/a:amazon:linux:rust-debugger-common, p-cpe:/a:amazon:linux:rust-debuginfo, p-cpe:/a:amazon:linux:rust-doc, p-cpe:/a:amazon:linux:rust-gdb, p-cpe:/a:amazon:linux:rust-src, p-cpe:/a:amazon:linux:rust-std-static, p-cpe:/a:amazon:linux:rustfmt, cpe:/o:amazon:linux:2

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2022/7/6

弱點發布日期: 2021/4/11

參考資訊

CVE: CVE-2020-36323, CVE-2021-28876, CVE-2021-28878, CVE-2021-28879, CVE-2021-31162