Amazon Linux 2:kernel (ALASKERNEL-5.10-2023-036)

high Nessus Plugin ID 180564

概要

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

說明

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

在 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)

在 Linux 核心中 fs/cifs/smb2ops.c Common Internet File System (CIFS) 的 smb2_ioctl_query_info 函式中發現拒絕服務 (DOS) 問題,這是 memdup_user 函式的傳回不正確所導致。此缺陷允許有權限的本機 (CAP_SYS_ADMIN) 攻擊者造成系統當機。
(CVE-2022-0168)

當 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 核心的 io_uring 介面子系統中,在使用者觸發逾時排清和移除之間爭用情形的方式中發現釋放後使用缺陷。本機使用者可利用此缺陷造成系統當機,或提升自己的系統權限。(CVE-2022-29582)

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

mm透過 zram swap 修正非預期的歸零頁面對應 (CVE-2022-49052)

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

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

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

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

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

SUNRPC修正 svc_deferred_event 追踪類別 (CVE-2022-49065)

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

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

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

gpio在初始化前限制使用 GPIO 晶片 irq 成員 (CVE-2022-49072)

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

net:openvswitch:修正巢狀動作的洩漏 (CVE-2022-49086)

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

NFS避免回寫執行緒在 mempool_alloc() 中停滯 (CVE-2022-49097)

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

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

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

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

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

NFSv4.2:修正 _nfs42_proc_copy_notify() 中的參照計數洩漏 (CVE-2022-49103)

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

ceph當note_last_dentry 傳回錯誤時修正 ceph_readdir 中的記憶體洩漏 (CVE-2022-49107)

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

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

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

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

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

io_uring修正檔案註冊中 uid 的記憶體洩漏 (CVE-2022-49144)

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

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

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

watch_queue:卸除 watch_queue 時釋放頁面陣列 (CVE-2022-49148)

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

rxrpc修正呼叫計時器開始與呼叫解構爭用的問題 (CVE-2022-49149)

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

wireguard通訊端停用 ipv6 時釋放 send6 中的 skb (CVE-2022-49153)

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

KVMSVM修正超出邊界來賓 IRQ 的錯誤 (CVE-2022-49154)

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

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

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

scsi:qla2xxx:不可部分完成時修正排程 (CVE-2022-49156)

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

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

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

ext4以 fast_commit 和 flex_bg 修正 ext4_mb_mark_bb() (CVE-2022-49174)

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

MIPSpgalloc修正 pgd_free() 造成的記憶體洩漏 (CVE-2022-49210)

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

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

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

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

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

watch_queue實際釋放 watch (CVE-2022-49256)

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

watch_queue:修正錯誤清理中的 NULL 解除參照 (CVE-2022-49257)

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

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

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

drm/i915/gem:新增 vm_access 中遺漏的邊界檢查 (CVE-2022-49261)

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

exec當 argv 為空時強制使用單一空白字串 (CVE-2022-49264)

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

cifs防止 smb2_ioctl_query_info() 中的錯誤輸出長度 (CVE-2022-49271)

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

ALSApcm修正具有 buffer_mutex 和 mmap_lock 的潛在 AB/BA 鎖定 (CVE-2022-49272)

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

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

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

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

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

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

在 Linux 核心的 core dump 子系統中發現釋放後使用缺陷。本機使用者可利用此缺陷導致系統當機。(CVE-2023-1249)

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

在適用於 6.2.10 版之前 Linux 核心的某些 Intel(R) i915 圖形驅動程式中,由於對記憶體緩存區邊界內的運算限制不當,經驗證的使用者可藉此透過本機存取權提升權限。(CVE-2023-28410)

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

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

解決方案

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

另請參閱

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

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

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

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

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

https://alas.aws.amazon.com/cve/html/CVE-2022-49272.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-1249.html

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

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

https://alas.aws.amazon.com/AL2/ALASKERNEL-5.10-2023-036.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-0168.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-29582.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-49052.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-49065.html

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

https://alas.aws.amazon.com/cve/html/CVE-2022-49072.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-49086.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-49097.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-49103.html

https://alas.aws.amazon.com/cve/html/CVE-2022-49107.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-49144.html

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

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

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

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

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

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

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

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

https://alas.aws.amazon.com/cve/html/CVE-2022-49174.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

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-49210.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-49256.html

Plugin 詳細資訊

嚴重性: High

ID: 180564

檔案名稱: al2_ALASKERNEL-5_10-2023-036.nasl

版本: 1.16

類型: local

代理程式: unix

已發布: 2023/9/6

已更新: 2025/5/23

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

風險資訊

VPR

風險因素: High

分數: 7.3

CVSS v2

風險因素: Medium

基本分數: 6.9

時間性分數: 5.4

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

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

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-2023-28410

弱點資訊

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:kernel-livepatch-5.10.112-108.499, 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/6/29

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

參考資訊

CVE: CVE-2021-47634, CVE-2021-47646, CVE-2021-47650, CVE-2022-0168, CVE-2022-1158, CVE-2022-1353, CVE-2022-29582, CVE-2022-2977, CVE-2022-41858, CVE-2022-48853, CVE-2022-49044, CVE-2022-49048, CVE-2022-49052, CVE-2022-49053, CVE-2022-49058, CVE-2022-49065, CVE-2022-49066, CVE-2022-49072, 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-49086, CVE-2022-49087, CVE-2022-49092, CVE-2022-49094, CVE-2022-49097, CVE-2022-49098, CVE-2022-49100, CVE-2022-49103, CVE-2022-49107, CVE-2022-49114, CVE-2022-49122, CVE-2022-49144, CVE-2022-49145, CVE-2022-49148, CVE-2022-49149, CVE-2022-49153, CVE-2022-49154, CVE-2022-49155, CVE-2022-49156, CVE-2022-49171, CVE-2022-49174, 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-49210, CVE-2022-49220, CVE-2022-49224, CVE-2022-49256, CVE-2022-49257, CVE-2022-49259, CVE-2022-49261, CVE-2022-49264, CVE-2022-49271, CVE-2022-49272, CVE-2022-49279, CVE-2022-49280, CVE-2022-49287, CVE-2023-1249, CVE-2023-1637, CVE-2023-28410