🔍 CVE-2026-98548

9.8
CVSS Score
CRITICAL
2026-10-18
2026-10-24 14:16
✅ 완료

🇰🇷 한글 설명

Linux 커널 SCTP 모듈에서 COOKIE-ECHOED 상태의 연관(association)이 비주 경로(non-primary) 주소로부터 [ERROR(Stale Cookie)][DATA] 번들 패킷을 받으면, 패킷을 처리하는 도중 수신 transport가 제거되어 해제된 메모리를 참조하는 Use-After-Free가 발생합니다. 패치는 stale-cookie ERROR 처리 후 해당 패킷의 나머지 청크를 폐기하도록 수정합니다.

💡 쉬운 설명

악의적인 SCTP 피어가 특수하게 조작된 패킷을 보내면 리눅스 커널이 이미 해제된 메모리를 사용하게 됩니다. 이로 인해 시스템 충돌이나 임의 코드 실행으로 이어질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: sctp: discard the rest of the packet on a stale-cookie error When an association is in COOKIE-ECHOED state and the peer sends a bundled [ERROR(Stale Cookie)][DATA] packet from one of its non-primary addresses, processing the ERROR chunk takes the non-fatal stale-cookie retry path sctp_sf_do_5_2_6_stale(), which queues SCTP_CMD_DEL_NON_PRIMARY while keeping the association alive. sctp_cmd_del_non_primary() removes every non-primary transport - including the very transport this packet arrived on, which is still referenced by the receive lookup and shared by all chunks of the packet via chunk->transport. sctp_assoc_rm_peer() does redirect asoc->peer.last_data_from away from the removed transport, but right afterwards the bundled DATA chunk makes sctp_assoc_bh_rcv() re-register asoc->peer.last_data_from = chunk->transport unconditionally, undoing the redirection with the just-removed transport. Once the packet is done, the receive reference is dropped and the transport is RCU-freed, while the surviving association keeps the dangling last_data_from. A later FWD-TSN (or the delayed SACK timer) makes sctp_gen_sack() dereference it (->param_flags and friends), and sctp_make_sack()/sctp_outq_select_transport() may write to the freed object and link it into the live transport list. This is a use-after-free triggerable by any malicious SCTP peer (or a local unprivileged user acting as one) with no capabilities required: BUG: KASAN: slab-use-after-free in sctp_do_sm+0x498a/0x5660 Read of size 4 at addr ffff88800e1e356c by task poc/115 Call Trace: sctp_do_sm <- sctp_assoc_bh_rcv <- sctp_inq_push <- sctp_rcv <- ip_protocol_deliver_rcu <- ip_rcv Allocated: sctp_transport_new <- sctp_assoc_add_peer <- sctp_process_init (INIT-ACK processing) Freed: kfree <- sctp_transport_destroy_rcu <- rcu_core (call_rcu queued by sctp_transport_put at end of sctp_rcv) The buggy address is located 364 bytes inside of freed 1024-byte region [ffff88800e1e3400, ffff88800e1e3800), cache kmalloc-1k Note that commit 03a9d10ecf71 ("sctp: drop a chunk if its transport was removed") only covers the window between the receive lookup and the chunk processing (e.g. an ASCONF DEL-IP racing the socket backlog); here the transport is removed *while* the packet is being processed, by an earlier chunk of the same packet, so the drop in sctp_inq_push() does not reach this path. Verified with the bundled [ERROR(Stale Cookie)][DATA] + FWD-TSN reproducer: the KASAN report above still fires with that commit applied, and is gone with this patch on top. Fix it by discarding the rest of the packet on this path, as suggested by Xin. After the stale-cookie ERROR has sent the association back to COOKIE-WAIT and removed the non-primary transports, the remaining chunks of the packet can only run against the restarted handshake while referencing the removed arrival transport through chunk->transport: besides the last_data_from registration above, sctp_cmd_setup_t2() and the sctp_make_*() reply builders would also copy that pointer into association-lifetime state that sctp_assoc_rm_peer() has already sanitized. Let the peer retransmit them, in line with what sctp_inq_push() does for chunks whose transport was removed before processing.

📍 영향받는 시스템

SCTP 기능을 사용하는 리눅스 커널 (패치 이전의 대부분 배포판 커널)

⚔️ 공격 벡터

원격의 악의적인 SCTP 피어(또는 권한 없는 로컬 사용자)가 stale-cookie ERROR와 DATA 청크를 번들한 패킷을 전송하여 UAF를 유발

🛡️ 대응 방법

배포판이 제공하는 최신 보안 커널로 업데이트하고 재부팅하거나, SCTP 모듈을 사용하지 않는다면 blacklist 설정으로 비활성화

🔧 검증 코드

커널 버전이 패치가 적용된 배포판 보안 업데이트 버전 이상인지 확인하고, sctp 모듈이 로드되어 있지 않다면 해당 취약점 노출이 제한됨

Shell / Script
uname -r; lsmod | grep -i sctp

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel