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 核心中,下列弱點已解決:

scsiqla4xxx新增剖析 nlattrs 時的長度檢查 (CVE-2023-53456)

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

hsr修正 fill_frame_info() 中的 uninit-value 存取 (CVE-2023-53462)

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

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

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

iommu/amd/iommu_v2修正 pasid 取消系結上的 pasid_state refcount dec hit 0 警告 (CVE-2023-53501)

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

PM / devfreq修正 devfreq_dev_release() 中的洩漏 (CVE-2023-53518)

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

jbd2在將 'jh->b_transaction' 從檢查點移除之前對其進行檢查 (CVE-2023-53526)

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

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

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

drm/i915標記 GuC 虛擬引擎的要求以避免釋放後使用 (CVE-2023-53552)

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

bpf拒絕 bpf_sk_assign 中未雜湊的通訊端 (CVE-2023-53585)

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

driversbase取消註冊裝置時釋放 devm 資源 (CVE-2023-53596)

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

驅動程式hvvmbus不解除參照 ACPI root 物件處理 (CVE-2023-53647)

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

perf 追踪實際釋放 evsel->priv 區域 (CVE-2023-53649)

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

ext4修正 ext4_fname_{setup_filename,prepare_lookup} 中的記憶體洩漏 (CVE-2023-53662)

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

KVMnSVM針對巢狀 TSC 縮放支援進行檢查而非宣告 (CVE-2023-53663)

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

btrfs如果我們找不到內嵌反向參照則輸出額外的除錯資訊 (CVE-2023-53672)

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

scsi目標iscsi修正 lio_target_nacl_info_show() 中的緩衝區溢位 (CVE-2023-53676)

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

NFS修正潛在的資料損毀 (CVE-2023-53711)

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

mdraid1修正 raid1_remove_disk() 中潛在的 OOB (CVE-2023-53722)

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

arm64csum針對負長度修正 IP 總和檢查碼程式碼中的 OoB 存取 (CVE-2023-53726)

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

net/schedfq_pie避免 fq_pie_timer() 中的停止 (CVE-2023-53727)

在密碼編譯演算法 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-53456.html

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

https://explore.alas.aws.amazon.com/CVE-2023-53727.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.28

類型: local

代理程式: unix

已發布: 2023/10/3

已更新: 2025/12/2

支援的感應器: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, 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-53179

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

必要的 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-53456, CVE-2023-53462, CVE-2023-53480, CVE-2023-53501, CVE-2023-53518, CVE-2023-53526, CVE-2023-53531, CVE-2023-53552, CVE-2023-53585, CVE-2023-53596, CVE-2023-53647, CVE-2023-53649, CVE-2023-53662, CVE-2023-53663, CVE-2023-53672, CVE-2023-53676, CVE-2023-53711, CVE-2023-53722, CVE-2023-53726, CVE-2023-53727, CVE-2023-6176