🔍 CVE-2022-50243

7.8
CVSS Score
HIGH
2025-09-15
2026-08-04 10:18
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 SCTP 프로토콜 구현 중 sctp_auth_asoc_init_active_key 함수에서 오류가 발생할 경우, 활성 키가 업데이트되지 않은 상태에서 기존 키가 해제되는 취약점이 있습니다. 이로 인해 패킷 전송 시 해제된 메모리에 접근하는 Use-After-Free(UAF) 오류가 발생할 수 있습니다.

💡 쉬운 설명

데이터를 주고받는 통로인 SCTP에서 보안 키를 교체하다가 오류가 나면, 이미 사용 중인 키를 실수로 삭제해 버리는 문제입니다. 이로 인해 시스템이 비정상적으로 작동하거나 해커가 시스템을 장악할 수 있는 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: sctp: handle the error returned from sctp_auth_asoc_init_active_key When it returns an error from sctp_auth_asoc_init_active_key(), the active_key is actually not updated. The old sh_key will be freeed while it's still used as active key in asoc. Then an use-after-free will be triggered when sending patckets, as found by syzbot: sctp_auth_shkey_hold+0x22/0xa0 net/sctp/auth.c:112 sctp_set_owner_w net/sctp/socket.c:132 [inline] sctp_sendmsg_to_asoc+0xbd5/0x1a20 net/sctp/socket.c:1863 sctp_sendmsg+0x1053/0x1d50 net/sctp/socket.c:2025 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:819 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 This patch is to fix it by not replacing the sh_key when it returns errors from sctp_auth_asoc_init_active_key() in sctp_auth_set_key(). For sctp_auth_set_active_key(), old active_key_id will be set back to asoc->active_key_id when the same thing happens.

📍 영향받는 시스템

SCTP 프로토콜을 사용하는 리눅스 커널 버전 (패치 적용 전)

⚔️ 공격 벡터

특수하게 조작된 SCTP 패킷을 전송하여 키 교체 과정에서 오류를 유도하고 메모리 오류를 발생시킴

🛡️ 대응 방법

리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 버전인지 보안 권고안과 비교

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel