🔍 CVE-2024-46858

8.1
CVSS Score
HIGH
2024-09-27
2026-08-04 11:20
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 MPTCP(MultiPath TCP) 구성 요소에서 레이스 컨디션으로 인한 Use-After-Free(UAF) 취약점이 발견되었습니다. 특정 경로를 통해 타이머 삭제 함수가 호출될 때, 잠금(lock) 해제 후 메모리가 해제되어 이미 해제된 메모리에 접근할 수 있는 문제가 발생합니다.

💡 쉬운 설명

컴퓨터가 데이터를 처리하는 과정에서 두 가지 작업이 동시에 충돌하여, 이미 삭제된 메모리 영역을 다시 사용하려고 시도하는 오류입니다. 이로 인해 시스템이 멈추거나 보안 공격에 악용될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: mptcp: pm: Fix uaf in __timer_delete_sync There are two paths to access mptcp_pm_del_add_timer, result in a race condition: CPU1 CPU2 ==== ==== net_rx_action napi_poll netlink_sendmsg __napi_poll netlink_unicast process_backlog netlink_unicast_kernel __netif_receive_skb genl_rcv __netif_receive_skb_one_core netlink_rcv_skb NF_HOOK genl_rcv_msg ip_local_deliver_finish genl_family_rcv_msg ip_protocol_deliver_rcu genl_family_rcv_msg_doit tcp_v4_rcv mptcp_pm_nl_flush_addrs_doit tcp_v4_do_rcv mptcp_nl_remove_addrs_list tcp_rcv_established mptcp_pm_remove_addrs_and_subflows tcp_data_queue remove_anno_list_by_saddr mptcp_incoming_options mptcp_pm_del_add_timer mptcp_pm_del_add_timer kfree(entry) In remove_anno_list_by_saddr(running on CPU2), after leaving the critical zone protected by "pm.lock", the entry will be released, which leads to the occurrence of uaf in the mptcp_pm_del_add_timer(running on CPU1). Keeping a reference to add_timer inside the lock, and calling sk_stop_timer_sync() with this reference, instead of "entry->add_timer". Move list_del(&entry->list) to mptcp_pm_del_add_timer and inside the pm lock, do not directly access any members of the entry outside the pm lock, which can avoid similar "entry->x" uaf.

📍 영향받는 시스템

MPTCP 기능이 활성화된 리눅스 커널 버전

⚔️ 공격 벡터

네트워크 패킷 처리와 Netlink 메시지 전송 간의 레이스 컨디션을 유도하여 메모리 오류 발생

🛡️ 대응 방법

MPTCP 타이머 관리 로직이 수정된 최신 리눅스 커널로 업데이트

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel