🔍 CVE-2025-39852

5.5
CVSS Score
MEDIUM
2025-09-19
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 net/tcp 구성 요소에서 IPv6 TCP-AO 처리 실패 시 소켓 메모리가 해제되지 않고 누수되는 취약점이 발견되었습니다. tcp_v6_syn_recv_sock 함수에서 오류 발생 시 적절한 종료 절차를 거치지 않아 메모리 누수가 발생하며, 이를 해결하기 위해 오류 처리 로직이 수정되었습니다.

💡 쉬운 설명

인터넷 연결을 처리하는 과정에서 오류가 발생했을 때, 사용했던 메모리를 제대로 돌려주지 않고 계속 쌓아두는 문제가 있습니다. 이 문제가 지속되면 시스템의 메모리가 점차 부족해져 컴퓨터가 느려지거나 멈출 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net/tcp: Fix socket memory leak in TCP-AO failure handling for IPv6 When tcp_ao_copy_all_matching() fails in tcp_v6_syn_recv_sock() it just exits the function. This ends up causing a memory-leak: unreferenced object 0xffff0000281a8200 (size 2496): comm "softirq", pid 0, jiffies 4295174684 hex dump (first 32 bytes): 7f 00 00 06 7f 00 00 06 00 00 00 00 cb a8 88 13 ................ 0a 00 03 61 00 00 00 00 00 00 00 00 00 00 00 00 ...a............ backtrace (crc 5ebdbe15): kmemleak_alloc+0x44/0xe0 kmem_cache_alloc_noprof+0x248/0x470 sk_prot_alloc+0x48/0x120 sk_clone_lock+0x38/0x3b0 inet_csk_clone_lock+0x34/0x150 tcp_create_openreq_child+0x3c/0x4a8 tcp_v6_syn_recv_sock+0x1c0/0x620 tcp_check_req+0x588/0x790 tcp_v6_rcv+0x5d0/0xc18 ip6_protocol_deliver_rcu+0x2d8/0x4c0 ip6_input_finish+0x74/0x148 ip6_input+0x50/0x118 ip6_sublist_rcv+0x2fc/0x3b0 ipv6_list_rcv+0x114/0x170 __netif_receive_skb_list_core+0x16c/0x200 netif_receive_skb_list_internal+0x1f0/0x2d0 This is because in tcp_v6_syn_recv_sock (and the IPv4 counterpart), when exiting upon error, inet_csk_prepare_forced_close() and tcp_done() need to be called. They make sure the newsk will end up being correctly free'd. tcp_v4_syn_recv_sock() makes this very clear by having the put_and_exit label that takes care of things. So, this patch here makes sure tcp_v4_syn_recv_sock and tcp_v6_syn_recv_sock have similar error-handling and thus fixes the leak for TCP-AO.

📍 영향받는 시스템

Linux Kernel (TCP-AO 및 IPv6를 사용하는 시스템)

⚔️ 공격 벡터

특수하게 조작된 TCP-AO 패킷을 전송하여 IPv6 연결 과정에서 의도적으로 오류를 유발함으로써 메모리 누수 유도

🛡️ 대응 방법

TCP-AO 오류 처리 로직이 수정된 최신 Linux 커널 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel