🇰🇷 한글 설명
Linux 커널의 netfilter conntrack 구성 요소에서 sprintf 함수 사용으로 인한 스택 범위 초과(stack-out-of-bounds) 취약점이 발견되었습니다. mangle_content_len() 함수 내에서 버퍼 크기보다 큰 데이터를 작성할 수 있어 메모리 오염을 유발할 수 있습니다. 이 문제는 sprintf를 scnprintf로 교체하고 버퍼 크기를 확장함으로써 해결되었습니다.
💡 쉬운 설명
컴퓨터의 네트워크 관리 기능에서 데이터를 처리할 때, 준비된 그릇보다 더 큰 데이터를 담으려다 메모리가 넘치는 문제가 발생했습니다. 이로 인해 시스템이 멈추거나 해커가 악성 코드를 실행할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: conntrack: remove sprintf usage
Replace it with scnprintf, the buffer sizes are expected to be large enough
to hold the result, no need for snprintf+overflow check.
Increase buffer size in mangle_content_len() while at it.
BUG: KASAN: stack-out-of-bounds in vsnprintf+0xea5/0x1270
Write of size 1 at addr [..]
vsnprintf+0xea5/0x1270
sprintf+0xb1/0xe0
mangle_content_len+0x1ac/0x280
nf_nat_sdp_session+0x1cc/0x240
process_sdp+0x8f8/0xb80
process_invite_request+0x108/0x2b0
process_sip_msg+0x5da/0xf50
sip_help_tcp+0x45e/0x780
nf_confirm+0x34d/0x990
[..]
📍 영향받는 시스템
Linux Kernel (netfilter/conntrack 모듈을 사용하는 시스템)
⚔️ 공격 벡터
조작된 SIP/SDP 메시지를 네트워크를 통해 전송하여 커널 메모리 오염 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인