🇰🇷 한글 설명
Linux 커널의 터널링 기능에서 IPv4 PMTU 오류 생성 시 KASAN slab-out-of-bounds 오류가 발생하는 취약점입니다. 비선형 skb(sk_buff)를 처리하는 과정에서 ip_compute_csum 함수가 잘못된 메모리 영역을 참조하여 시스템 불안정을 초래할 수 있습니다.
💡 쉬운 설명
네트워크 데이터를 처리하는 과정에서 메모리의 잘못된 부분을 읽으려고 시도하여 시스템이 멈추거나 오류가 발생하는 문제입니다. 특정 네트워크 설정 환경에서 데이터 패킷을 처리할 때 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tunnels: fix kasan splat when generating ipv4 pmtu error
If we try to emit an icmp error in response to a nonliner skb, we get
BUG: KASAN: slab-out-of-bounds in ip_compute_csum+0x134/0x220
Read of size 4 at addr ffff88811c50db00 by task iperf3/1691
CPU: 2 PID: 1691 Comm: iperf3 Not tainted 6.5.0-rc3+ #309
[..]
kasan_report+0x105/0x140
ip_compute_csum+0x134/0x220
iptunnel_pmtud_build_icmp+0x554/0x1020
skb_tunnel_check_pmtu+0x513/0xb80
vxlan_xmit_one+0x139e/0x2ef0
vxlan_xmit+0x1867/0x2760
dev_hard_start_xmit+0x1ee/0x4f0
br_dev_queue_push_xmit+0x4d1/0x660
[..]
ip_compute_csum() cannot deal with nonlinear skbs, so avoid it.
After this change, splat is gone and iperf3 is no longer stuck.
📍 영향받는 시스템
Linux kernel (특히 6.5.0-rc3 이전 버전 및 VXLAN/Tunneling 기능을 사용하는 시스템)
⚔️ 공격 벡터
특수하게 조작된 비선형 네트워크 패킷을 전송하여 커널 메모리 오류 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인