Amazon Linux 2023:bpftool、kernel、kernel-devel (ALAS2023-2023-356)

high Nessus Plugin ID 182458

概要

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

說明

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

在 Linux 核心 6.4.2 及其之前版本的 USB 子系統中發現一個問題。drivers/usb/core/sysfs.c 的 read_descriptors 中存在一個超出邊界和損毀問題。(CVE-2023-37453)

nf_osf_match_one() 中的 nftables 超出邊界讀取弱點 (CVE-2023-39189)

在 Linux 核心的 Netfilter 子系統中發現一個缺陷。xt_u32 模組未驗證 xt_u32 結構中的欄位。本機特權攻擊者可利用此缺陷,透過以陣列邊界外的值設定尺寸欄位來觸發超出邊界讀取,進而導致當機或資訊洩漏。(CVE-2023-39192)

在 Linux 核心的 Netfilter 子系統中發現一個缺陷。sctp_mt_check 未驗證 flag_count 欄位。本機特權 (CAP_NET_ADMIN) 攻擊者可利用此缺陷觸發超出邊界讀取,進而導致當機或資訊洩漏。(CVE-2023-39193)

Linux 核心的 kmalloc_reserve() 中存在整數溢位弱點,本機使用者可藉此造成系統當機,或在某些情況下取得在核心空間中執行程式碼的權限。(CVE-2023-42752)

上游認可對此問題的描述如下:

ip_set_hash_netportnet 中遺漏的 IP_SET_HASH_WITH_NET0 巨集可導致程式使用錯誤的「CIDR_POS(c)」來計算陣列位移,進而導致整數反向溢位。因此,這會造成 slab 超出邊界存取。(CVE-2023-42753)

在 rsvp_change() 中發現一個瑕疵。根本原因是 slab 超出邊界存取,但由於原始指標的位移是由使用者完全控制的 `unsign int`,因此該行為通常是環境指標存取。(CVE-2023-42755)

在 6.5.3 之前版本的 Linux 核心中,發現 IGB 驅動程式中的 drivers/net/ethernet/intel/igb/igb_main.c 存在問題。緩衝區大小可能不足以容納大於 MTU 的框架。(CVE-2023-45871)

Linux 核心的 net/sched: sch_hfsc (HFSC qdisc 流量控制) 元件中存在釋放後使用弱點,攻擊者可利用此弱點來提升本機權限。

如果具有連結共用曲線的類別 (即設定了 HFSC_FSC 旗標) 的父項沒有連結共用曲線,則 init_vf() 會呼叫父項上的 vttree_insert(),但會略過 update_vf( ) 上的 vttree_remove()。這會留下可造成釋放後使用的懸置指標。

建議升級過去的 commit b3d26c5702c7d6c45456326e56d2ccf3f103e60f。(CVE-2023-4623)

Linux 核心的 net/sched: sch_qfq 元件中存在釋放後使用弱點,攻擊者可利用此弱點來提升本機權限。

當使用 plug qdisc 做為 qfq qdisc 的類別時,傳送網路封包會在 qfq_dequeue() 中觸發釋放後使用弱點,這是因為 sch_plug 的 .peek 處置程式不正確,且缺少 agg_dequeue() 中的錯誤檢查所致。

建議升級過去的 commit 8fc134fee27f2263988ae38920bc03da416b03d8。(CVE-2023-4921)

在 Linux 核心中,下列弱點已解決:

netfilter:nftables:exthdr:修復 4 位元組堆疊 OOB 寫入弱點

如果 priv->len 是 4 的倍數,則 dst[len / 4] 可寫入超過目的地陣列,進而導致堆疊損毀。

這個建構對於清理暫存器的其餘部分是必要的,前提是 ->len 不是暫存器大小的倍數,因此就像 nft_payload.c 一樣,將其做為條件。

錯誤是在 4.1 週期中新增,並在新增 tcp/sctp 和 ip 選項支援時複製/繼承。

由零時差計劃專案報告的錯誤 (ZDI-CAN-21950、ZDI-CAN-21951、ZDI-CAN-21961)。(CVE-2023-52628)

在 Linux 核心中,下列弱點已解決:

USB核心不覆寫 hub_port_init() 中的 udev->descriptor 修正爭用 (CVE-2023-52886)

在 Linux 核心中,下列弱點已解決:

netfilteripset新增 ip_set_hash_netportnet.c 遺漏的 IP_SET_HASH_WITH_NET0 巨集 (CVE-2023-53179)

在 Linux 核心中,下列弱點已解決:

af_unix修正 user->unix_inflight 的資料爭用。 (CVE-2023-53204)

在 Linux 核心中,下列弱點已解決:

KVMnSVM根據 L1 狀態而非 L2 狀態載入 L1 的 TSC 乘數 (CVE-2023-53208)

在 Linux 核心中,下列弱點已解決:

md/raid5-cache修正 r5l_flush_stripe_to_raid() 的 null-ptr-deref (CVE-2023-53210)

在 Linux 核心中,下列弱點已解決:

drm/msm/mdp5不洩漏某些平面狀態 (CVE-2023-53324)

在 Linux 核心中,下列弱點已解決:

pstore/ram檢查 init 期間空白 przs 的開始 (CVE-2023-53331)

在 Linux 核心中,下列弱點已解決:

lwt修正 BPF xmit ops 的傳回值 (CVE-2023-53338)

在 Linux 核心中,下列弱點已解決:

skbuffskb_segment在使用 skbuff 片段之前呼叫零複製函式 (CVE-2023-53354)

在 Linux 核心中,下列弱點已解決:

追踪修正 cpu 緩衝區寫入和交換之間的爭用問題 (CVE-2023-53368)

在 Linux 核心中,下列弱點已解決:

ACPICA新增 AML_NO_OPERAND_RESOLVE 旗標至計時器 (CVE-2023-53395)

在 Linux 核心中,下列弱點已解決:

xsk修正通訊端清理期間的 xsk_diag 釋放後使用錯誤 (CVE-2023-53426)

在 Linux 核心中,下列弱點已解決:

x86/MCE發生 AMD Zen IF 毒害錯誤時一律儲存 CS 暫存器 (CVE-2023-53438)

在 Linux 核心中,下列弱點已解決:

HIDmultitouch更正 hidinput input_dev 名稱的 devm 裝置參照 (CVE-2023-53454)

在 Linux 核心中,下列弱點已解決:

kobject針對 kset_register() 中的 kset->kobj.ktype 新增功能健全檢查 (CVE-2023-53480)

在 Linux 核心中,下列弱點已解決:

null_blk修正輪詢要求逾時處理 (CVE-2023-53531)

在密碼編譯演算法 scatterwalk 功能的 Linux 核心 API 中發現一個 null 指標解除參照缺陷。當使用者建構具有特定通訊端組態的惡意封包時,會發生此問題,其可允許本機使用者造成系統當機或提升其在系統上的權限。(CVE-2023-6176)

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

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

解決方案

執行「dnf update kernel --releasever 2023.2.20231002」或 或「dnf update --advisory ALAS2023-2023-356 --releasever 2023.2.20231002」以更新系統。

另請參閱

https://alas.aws.amazon.com//AL2023/ALAS2023-2023-356.html

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

https://explore.alas.aws.amazon.com/CVE-2023-37453.html

https://explore.alas.aws.amazon.com/CVE-2023-39189.html

https://explore.alas.aws.amazon.com/CVE-2023-39192.html

https://explore.alas.aws.amazon.com/CVE-2023-39193.html

https://explore.alas.aws.amazon.com/CVE-2023-4623.html

https://explore.alas.aws.amazon.com/CVE-2023-4921.html

https://explore.alas.aws.amazon.com/CVE-2023-52628.html

https://explore.alas.aws.amazon.com/CVE-2023-52886.html

https://explore.alas.aws.amazon.com/CVE-2023-53179.html

https://explore.alas.aws.amazon.com/CVE-2023-53204.html

https://explore.alas.aws.amazon.com/CVE-2023-53208.html

https://explore.alas.aws.amazon.com/CVE-2023-53210.html

https://explore.alas.aws.amazon.com/CVE-2023-53324.html

https://explore.alas.aws.amazon.com/CVE-2023-53331.html

https://explore.alas.aws.amazon.com/CVE-2023-53338.html

https://explore.alas.aws.amazon.com/CVE-2023-53354.html

https://explore.alas.aws.amazon.com/CVE-2023-53368.html

https://explore.alas.aws.amazon.com/CVE-2023-53395.html

https://explore.alas.aws.amazon.com/CVE-2023-53426.html

https://explore.alas.aws.amazon.com/CVE-2023-53438.html

https://explore.alas.aws.amazon.com/CVE-2023-53454.html

https://explore.alas.aws.amazon.com/CVE-2023-53480.html

https://explore.alas.aws.amazon.com/CVE-2023-53531.html

https://explore.alas.aws.amazon.com/CVE-2023-6176.html

https://explore.alas.aws.amazon.com/CVE-2023-42752.html

https://explore.alas.aws.amazon.com/CVE-2023-42753.html

https://explore.alas.aws.amazon.com/CVE-2023-42755.html

https://explore.alas.aws.amazon.com/CVE-2023-45871.html

Plugin 詳細資訊

嚴重性: High

ID: 182458

檔案名稱: al2023_ALAS2023-2023-356.nasl

版本: 1.23

類型: local

代理程式: unix

已發布: 2023/10/3

已更新: 2025/10/14

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: Medium

基本分數: 6.8

時間性分數: 5.3

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

CVSS 評分資料來源: CVE-2023-4921

CVSS v3

風險因素: High

基本分數: 7.8

時間性分數: 7

媒介: CVSS:3.0/AV:L/AC:L/PR:L/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:kernel, p-cpe:/a:amazon:linux:kernel-tools-debuginfo, p-cpe:/a:amazon:linux:kernel-tools-devel, p-cpe:/a:amazon:linux:perf-debuginfo, p-cpe:/a:amazon:linux:kernel-debuginfo-common-aarch64, p-cpe:/a:amazon:linux:bpftool-debuginfo, p-cpe:/a:amazon:linux:kernel-libbpf-devel, p-cpe:/a:amazon:linux:kernel-libbpf-static, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:kernel-debuginfo, p-cpe:/a:amazon:linux:kernel-debuginfo-common-x86_64, p-cpe:/a:amazon:linux:kernel-devel, p-cpe:/a:amazon:linux:kernel-headers, p-cpe:/a:amazon:linux:kernel-tools, p-cpe:/a:amazon:linux:perf, p-cpe:/a:amazon:linux:bpftool, p-cpe:/a:amazon:linux:python3-perf, p-cpe:/a:amazon:linux:python3-perf-debuginfo, p-cpe:/a:amazon:linux:kernel-libbpf, p-cpe:/a:amazon:linux:kernel-livepatch-6.1.55-75.123

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2023/9/27

弱點發布日期: 2023/9/6

參考資訊

CVE: CVE-2023-37453, CVE-2023-39189, CVE-2023-39192, CVE-2023-39193, CVE-2023-42752, CVE-2023-42753, CVE-2023-42755, CVE-2023-45871, CVE-2023-4623, CVE-2023-4921, CVE-2023-52628, CVE-2023-52886, CVE-2023-53179, CVE-2023-53204, CVE-2023-53208, CVE-2023-53210, CVE-2023-53324, CVE-2023-53331, CVE-2023-53338, CVE-2023-53354, CVE-2023-53368, CVE-2023-53395, CVE-2023-53426, CVE-2023-53438, CVE-2023-53454, CVE-2023-53480, CVE-2023-53531, CVE-2023-6176