Amazon Linux 2核心 --advisory ALAS2KERNEL-5。4-2023-053 (ALASKERNEL-5.4-2023-053)

high Nessus Plugin ID 182660

概要

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

說明

遠端主機上安裝的核心版本早於 5.4.257-170.359。因此,會受到 ALAS2KERNEL-5.4-2023-053 公告中所提及的多個弱點影響。

在 Linux 核心用於轉換封包的 IP 架構 (XFRM 子系統) 中發現一個缺陷。此問題可允許具有 CAP_NET_ADMIN 權限的惡意使用者直接解除參照 xfrm_update_ae_params() 中的 NULL 指標,進而可能導致核心損毀和拒絕服務。(CVE-2023-3772)

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 核心的 XFRM 子系統中發現一個缺陷。此特定缺陷存在於處理狀態篩選器的過程中,可導致讀取範圍超出配置緩衝區的結尾。本機特權 (CAP_NET_ADMIN) 攻擊者可利用此缺陷觸發超出邊界讀取,進而可能導致資訊洩漏。(CVE-2023-39194)

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

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 核心的 af_unix 元件中存在釋放後使用弱點,攻擊者可利用此弱點來提升本機權限。

unix_stream_sendpage() 函式嘗試在未鎖定佇列的情況下,將資料新增至對等端 recv 佇列中的最後一個 skb。因此會發生爭用,unix_stream_sendpage() 可無鎖定存取由記憶體回收所釋放的 skb,進而導致釋放後使用。

建議升級之前的 commit 790c2f9d15b594350ae9bca7b236f2b1859de02c。(CVE-2023-4622)

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)

在 6.4.12 之前的 Linux 核心中,drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 的 amdgpu_cs_wait_all_fences 中存在隔離釋放後使用問題。(CVE-2023-51042)

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

xfrm在 xfrm_update_ae_params 中新增 NULL 檢查 (CVE-2023-53147)

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

udf修正部分路徑名稱的未初始化陣列存取 (CVE-2023-53165)

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

drm/radeon修正 radeon_cs_parser_init 中的整數溢位 (CVE-2023-53309)

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

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

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

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

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

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

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

btrfs修正 btrfs_cancel_balance 中的 BUG_ON 條件 (CVE-2023-53339)

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

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

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

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

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

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

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

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

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

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

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

FSJFS修正 txBegin 中的 null-ptr-deref 讀取 (CVE-2023-53457)

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

af_unix修正 unix_stream_sendpage() 中的 null-ptr-deref。 (CVE-2023-53469)

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

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

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

fsjfs修正 UBSAN array-index-out-of-bounds 在 dbAllocDmapLev 中 (CVE-2023-53485)

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

powerpc/rtas_flash允許使用者復製到 flash 區塊快取物件 (CVE-2023-53487)

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

xfrm修正 decode_session6 中的 slab 釋放後使用 (CVE-2023-53500)

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

virtio-mmio不中斷 vm_dev 的生命週期 (CVE-2023-53515)

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

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

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

ip_vti修正 decode_session6 中潛在的 slab 釋放後使用 (CVE-2023-53559)

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

cifs釋放命中 fscache 讀取時的作品集鎖定。 (CVE-2023-53593)

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

ipmi_si修正 try_smi_init() 中的記憶體洩漏 (CVE-2023-53611)

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

jfs修正 diUnmount 中 JFS_IP(ipimap)->i_imap 的無效釋放 (CVE-2023-53616)

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

gfs2修正 gfs2_show_options() 中可能的資料爭用 (CVE-2023-53622)

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

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

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

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

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

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

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

解決方案

執行「yum update kernel」或 或「yum update --advisory ALAS2KERNEL-5.4-2023-053」更新您的系統。

另請參閱

https://alas.aws.amazon.com//AL2/ALAS2KERNEL-5.4-2023-053.html

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

https://explore.alas.aws.amazon.com/CVE-2023-3772.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-39194.html

https://explore.alas.aws.amazon.com/CVE-2023-4622.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-51042.html

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

https://explore.alas.aws.amazon.com/CVE-2023-53165.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-53309.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-53339.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-53454.html

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

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

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

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

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

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

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

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

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

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

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

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

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

https://explore.alas.aws.amazon.com/CVE-2023-53622.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-6176.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: 182660

檔案名稱: al2_ALASKERNEL-5_4-2023-053.nasl

版本: 1.19

類型: local

代理程式: unix

已發布: 2023/10/6

已更新: 2025/10/27

支援的感應器: 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-51042

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:perf, p-cpe:/a:amazon:linux:bpftool, p-cpe:/a:amazon:linux:perf-debuginfo, p-cpe:/a:amazon:linux:kernel-tools-debuginfo, p-cpe:/a:amazon:linux:kernel-debuginfo-common-aarch64, p-cpe:/a:amazon:linux:kernel-tools, p-cpe:/a:amazon:linux:kernel-devel, p-cpe:/a:amazon:linux:python-perf-debuginfo, p-cpe:/a:amazon:linux:kernel, p-cpe:/a:amazon:linux:kernel-debuginfo, p-cpe:/a:amazon:linux:kernel-headers, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:bpftool-debuginfo, p-cpe:/a:amazon:linux:kernel-tools-devel, p-cpe:/a:amazon:linux:kernel-debuginfo-common-x86_64, p-cpe:/a:amazon:linux:python-perf

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

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

弱點發布日期: 2023/7/25

參考資訊

CVE: CVE-2023-3772, CVE-2023-39189, CVE-2023-39192, CVE-2023-39193, CVE-2023-39194, CVE-2023-42753, CVE-2023-42755, CVE-2023-45871, CVE-2023-4622, CVE-2023-4623, CVE-2023-4921, CVE-2023-51042, CVE-2023-53147, CVE-2023-53165, CVE-2023-53179, CVE-2023-53204, CVE-2023-53309, CVE-2023-53324, CVE-2023-53331, CVE-2023-53338, CVE-2023-53339, CVE-2023-53354, CVE-2023-53368, CVE-2023-53395, CVE-2023-53454, CVE-2023-53456, CVE-2023-53457, CVE-2023-53469, CVE-2023-53480, CVE-2023-53485, CVE-2023-53487, CVE-2023-53500, CVE-2023-53515, CVE-2023-53518, CVE-2023-53559, CVE-2023-53593, CVE-2023-53611, CVE-2023-53616, CVE-2023-53622, CVE-2023-53672, CVE-2023-53676, CVE-2023-6176