Linux kernel 遠端程式碼執行(RCE)漏洞 CVE-2026-98432
Linux kernel RCE CVE-2026-98432
前往原廠公告原文 本頁為結構化摘要,產品版本與修補方式請以原廠公告為準。
摘要
CVE-2026-98432:ipv4: free inet_opt and ireq_opt after an RCU grace period tcp_v4_syn_recv_sock() 將 ireq->ireq_opt 的所有權轉移給子通訊端(newinet->inet_opt),但未進行複製。另一個 CPU 可同時處理同一請求 socket 的重傳 SYN,並從 tcp_check_req() 發送 SYNACK。tcp_v4_send_synack() 與 inet_csk_route_req() 僅在 rcu_read_lock() 保護下讀取 ireq->ireq_opt,接著 ip_build_and_send_pkt() 與 ip_options_build() 會兩次讀取 opt->optlen。請注意,SYNACK 計時器本身不是問題:它會持有其請求 socket 的參照,且 inet_csk_reqsk_queue_drop() 會在子 socket 被釋放前呼叫 timer_delete_sync()。自 commit 079096f103fa("tcp/dccp: install syn_recv requests into ehash table")起,請求 socket 的處理不再持有 listener lock,因此在 SYNACK 仍在建構時,沒有任何機制能阻止子 socket 被釋放。TCP 子 socket 未設定 SOCK_RCU_FREE,且 inet_sock_destruct() 以一般的 kfree() 釋放 inet_opt,進而導致 ip_options_build() 中的釋放後使用(use-after-free)。請求 socket 遷移(net.ipv4.tcp_migrate_req=1,或 BPF_SK_REUSEPORT_SELECT_OR_MIGRAT…)也存在類似問題。
AI 翻譯 由 Claude Haiku 5.5 自動翻譯,僅供參考;產品版本與修補資訊請以原廠英文公告為準。
查看英文原文
CVE-2026-98432:ipv4: free inet_opt and ireq_opt after an RCU grace period tcp_v4_syn_recv_sock() transfers ownership of ireq->ireq_opt to the child socket (newinet->inet_opt) without copying it. Another cpu can concurrently process a retransmitted SYN for the same request socket, and send a SYNACK from tcp_check_req(). tcp_v4_send_synack() and inet_csk_route_req() read ireq->ireq_opt under rcu_read_lock() only, and ip_build_and_send_pkt() and ip_options_build() then read opt->optlen twice. Note that the SYNACK timer itself is not an issue: it holds a reference on its request socket, and inet_csk_reqsk_queue_drop() calls timer_delete_sync() before the child can be freed. Since commit 079096f103fa ("tcp/dccp: install syn_recv requests into ehash table"), request sockets are processed without holding the listener lock, so nothing prevents the child socket from being freed while the SYNACK is still being built. TCP child sockets do not have SOCK_RCU_FREE, and inet_sock_destruct() frees inet_opt with a plain kfree(), leading to a use-after-free in ip_options_build(). A similar issue exists with request socket migration (net.ipv4.tcp_migrate_req=1, or a BPF_SK_REUSEPORT_SELECT_OR_MIGRAT…
相關 CVE(1)
| CVE | 本站漏洞資料 | 其他原廠公告 |
|---|---|---|
CVE-2026-98432 |
非本站收錄原廠發布 CVE.org | Palo Alto Networks NetApp |