Amazon Linux 2:kernel (ALASKERNEL-5.4-2024-076)

high Nessus Plugin ID 206247

概要

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

說明

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

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

ubi:修復 ctrl_cdev_ioctl 和 ubi_cdev_ioctl 之間的爭用情形 (CVE-2021-47634)

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

Revert 還原區塊、bfq接受已設定的佇列合併 (CVE-2021-47646)

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

ASoC:soc-compress:避免可能使用 null 指標 (CVE-2021-47650)

當 KVM 更新來賓的頁面表格項目時,會先使用 get_user_pages_fast() 釘選頁面,當失敗時 (例如,vma->flags 有 VM_IO 或 VM_PFNMAP),則會透過 find_vma_intersection() 取得頁面所在位置的對應 VMA、計算實體位址,並透過 memremap() 將頁面對應至核心虛擬位址,最後寫入更新。問題是當我們透過 find_vma_intersection() 取得 vma 時,程式只會檢查 VM_PFNMAP,不會同時檢查 VM_IO 和 VM_PFNMAP。在下面的重現器中,完成 KVM_SET_USER_MEMORY_REGION 後,我們會以 io_uring 的核心使用者共用區域取代來賓的記憶體對應,然後執行 KVM_TRANSLATE 作業,這最終會觸發頁面表格項目更新。現在,memremap() 會傳回 page_offset_base (所有實體記憶體的直接對應) + vaddr (KVM_TRANSLATE 的線性位址) + vm_pgoff (io_uring 執行 mmap(2) 時的位移),並使用傳回值作為 CMPXCHG 的基底位址 (在此情況下寫入 0x21)。
由於 vaddr 和 vm_pgoff 皆可由使用者模式處理程序控制,因此寫入可能會超出先前對應的來賓記憶體空間,並觸發 UAF 等例外狀況。此弱點與 CVE-2021-22543 有相似之處。(CVE-2022-1158)

在 Linux 核心中,發現 net/key/af_key.c 的 pfkey_register 函式中存在弱點。非特權的本機使用者可利用此缺陷取得核心記憶體的存取權,進而導致系統當機或內部核心資訊洩漏。(CVE-2022-1353)

在 Linux 核心的代理虛擬化 TPM 裝置實作中發現一個缺陷。在已設定虛擬化 TPM 裝置的系統上 (非預設設定),本機攻擊者可建立釋放後使用情形,並造成可在系統上提升權限的狀況。 (CVE-2022-2977)

在 Linux 核心中發現一個缺陷。Slip 驅動程式在 drivers/net/slip/slip.c 的 sl_tx_timeout 中進行卸離時,可能會發生 NULL 指標解除參照。此問題允許攻擊者造成系統當機或洩漏核心內部資訊。(CVE-2022-41858)

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

swiotlb:修復 DMA_FROM_DEVICE 的資訊洩漏弱點 (CVE-2022-48853)

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

dm 完整性:修復 tag_size 小於摘要大小時發生記憶體損毀的問題 (CVE-2022-49044)

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

ipv6修正轉送不含 in6 裝置的套件時發生的不穩定 (CVE-2022-49048)

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

scsi:目標:tcmu:修復可能的頁面 UAF (CVE-2022-49053)

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

cifs處理符號連結時可能發生緩衝區溢位 (CVE-2022-49058)

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

veth確保 eth 標頭位於 skb 的線性部分 (CVE-2022-49066)

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

atasata_dwc_460ex修正因 OOB 寫入而發生的當機 (CVE-2022-49073)

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

irqchip/gic-v3修正 GICR_CTLR.RWP 輪詢 (CVE-2022-49074)

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

btrfs修正 qgroup 限制中的 qgroup 保留溢位 (CVE-2022-49075)

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

mmmremap.c:避免 mremap 上無意義的 invalidate_range_start/end (old_size=0) (CVE-2022-49077)

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

lz4:修正 LZ4_decompress_safe_partial 超出邊界讀取 (CVE-2022-49078)

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

mm/mempolicy:修復 shared_policy_replace 中的 mpol_new 洩漏 (CVE-2022-49080)

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

qede:使用前確認是否已配置 skb (CVE-2022-49084)

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

drbd:修復 get_initial_state 中五個釋放後使用錯誤 (CVE-2022-49085)

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

rxrpc:修復 rxrpc_exit_net() 中的爭用情況 (CVE-2022-49087)

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

netipv4修正具有 nexthop 物件刪除警告的路由 (CVE-2022-49092)

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

net/tls修正 decrypt_internal 中的 slab-out-of-bounds 錯誤 (CVE-2022-49094)

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

Drivers:hv:vmbus:修復模組卸載時可能發生的損毀 (CVE-2022-49098)

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

virtio_console消除匿名 module_init 和 module_exit (CVE-2022-49100)

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

scsi:libfc:修復 fc_exch_abts_resp() 中的釋放後使用問題 (CVE-2022-49114)

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

dm ioctl防止潛在的 spectre v1 小工具 (CVE-2022-49122)

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

ACPI:CPPC:避免剖析 _CPC 資料時超出邊界存取 (CVE-2022-49145)

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

scsi:qla2xxx:隱藏 qla_create_qpair() 中的核心投訴 (CVE-2022-49155)

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

ntfs:新增配置大小的健全性測試 (CVE-2022-49166)

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

ext4:如果某人在未先要求 ext4 的情況下變更頁面,則不會執行 BUG (CVE-2022-49171)

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

PM核心保留 device_pm_check_callbacks() 中的 irq 旗標 (CVE-2022-49175)

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

bfq:修復 bfq_dispatch_request 中的釋放後使用 (CVE-2022-49176)

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

block、bfq:不移動 oom_bfqq (CVE-2022-49179)

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

LSM:legacy_parse_param 中的一般保護錯誤 (CVE-2022-49180)

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

af_netlink修正群組遮罩計算中的移位超出邊界 (CVE-2022-49197)

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

bpf、sockmap:修復 msg 具有 more_data 時較多不收費的問題 (CVE-2022-49204)

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

bpf、sockmap修正 sk_msg 的記憶體重複取消充電 (CVE-2022-49205)

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

RDMA/mlx5:修復訂閱事件常式錯誤流程中的記憶體流失 (CVE-2022-49206)

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

bpf、sockmap:修復 sk msg 已滿時 tcp_bpf_sendmsg 中的 memleak (CVE-2022-49209)

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

dax確保在損毀快取之前排清 inode (CVE-2022-49220)

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

power供應ab8500修正 ab8500_fg_sysfs_init 中的記憶體洩漏 (CVE-2022-49224)

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

block不刪除在其子項之前的佇列 kobject (CVE-2022-49259)

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

NFSD:避免 32 位元系統上的整數溢位 (CVE-2022-49279)

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

NFSD防止 nfssvc_decode_writeargs() 中的反向溢位 (CVE-2022-49280)

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

tpm修正結構 tpm_chip 的參照計數 (CVE-2022-49287)

在 Linux 核心 X86 的 CPU 電源管理選項功能中,發現使用者將 CPU 從暫停狀態恢復為 RAM 的方式存在缺陷,導致開機 CPU 容易遭受推測執行攻擊行為影響。本機使用者可利用此缺陷,在未經授權的情況下存取 CPU 的某些記憶體,這類似於推測執行攻擊行為。(CVE-2023-1637)

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

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

解決方案

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

另請參閱

https://alas.aws.amazon.com/cve/html/CVE-2022-49205.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49206.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49209.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49220.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49224.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49259.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49279.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49280.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49287.html

https://alas.aws.amazon.com/cve/html/CVE-2023-1637.html

https://alas.aws.amazon.com/AL2/ALASKERNEL-5.4-2024-076.html

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

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

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

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

https://alas.aws.amazon.com/cve/html/CVE-2022-1158.html

https://alas.aws.amazon.com/cve/html/CVE-2022-1353.html

https://alas.aws.amazon.com/cve/html/CVE-2022-2977.html

https://alas.aws.amazon.com/cve/html/CVE-2022-41858.html

https://alas.aws.amazon.com/cve/html/CVE-2022-48853.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49044.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49048.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49053.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49058.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49066.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49073.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49074.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49075.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49077.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49078.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49080.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49084.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49085.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49087.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49092.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49094.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49098.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49100.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49114.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49122.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49145.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49155.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49166.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49171.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49175.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49176.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49179.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49180.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49197.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49204.html

Plugin 詳細資訊

嚴重性: High

ID: 206247

檔案名稱: al2_ALASKERNEL-5_4-2024-076.nasl

版本: 1.11

類型: local

代理程式: unix

已發布: 2024/8/28

已更新: 2025/5/23

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: Low

基本分數: 3.6

時間性分數: 2.8

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

CVSS 評分資料來源: CVE-2022-1353

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

CVSS 評分資料來源: CVE-2022-49058

弱點資訊

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

修補程式發佈日期: 2024/7/24

弱點發布日期: 2022/4/29

參考資訊

CVE: CVE-2021-47634, CVE-2021-47646, CVE-2021-47650, CVE-2022-1158, CVE-2022-1353, CVE-2022-2977, CVE-2022-41858, CVE-2022-48853, CVE-2022-49044, CVE-2022-49048, CVE-2022-49053, CVE-2022-49058, CVE-2022-49066, CVE-2022-49073, CVE-2022-49074, CVE-2022-49075, CVE-2022-49077, CVE-2022-49078, CVE-2022-49080, CVE-2022-49084, CVE-2022-49085, CVE-2022-49087, CVE-2022-49092, CVE-2022-49094, CVE-2022-49098, CVE-2022-49100, CVE-2022-49114, CVE-2022-49122, CVE-2022-49145, CVE-2022-49155, CVE-2022-49166, CVE-2022-49171, CVE-2022-49175, CVE-2022-49176, CVE-2022-49179, CVE-2022-49180, CVE-2022-49197, CVE-2022-49204, CVE-2022-49205, CVE-2022-49206, CVE-2022-49209, CVE-2022-49220, CVE-2022-49224, CVE-2022-49259, CVE-2022-49279, CVE-2022-49280, CVE-2022-49287, CVE-2023-1637