🇰🇷 한글 설명
Linux 커널의 SCTP 프로토콜 구현에서 BH(Bottom Half) 처리가 비활성화되지 않아 발생하는 취약점입니다. 이로 인해 재귀 호출 제한을 관리하는 카운터가 CPU 간 이동 시 불일치하게 되어, 패킷이 비정상적으로 드롭될 수 있습니다.
💡 쉬운 설명
데이터를 처리하는 과정에서 컴퓨터의 작업 순서가 꼬여 중요한 데이터 패킷이 버려지는 문제입니다. 이로 인해 네트워크 속도가 급격히 느려지거나 연결이 끊길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sctp: disable BH before calling udp_tunnel_xmit_skb()
udp_tunnel_xmit_skb() / udp_tunnel6_xmit_skb() are expected to run with
BH disabled. After commit 6f1a9140ecda ("add xmit recursion limit to
tunnel xmit functions"), on the path:
udp(6)_tunnel_xmit_skb() -> ip(6)tunnel_xmit()
dev_xmit_recursion_inc()/dec() must stay balanced on the same CPU.
Without local_bh_disable(), the context may move between CPUs, which can
break the inc/dec pairing. This may lead to incorrect recursion level
detection and cause packets to be dropped in ip(6)_tunnel_xmit() or
__dev_queue_xmit().
Fix it by disabling BH around both IPv4 and IPv6 SCTP UDP xmit paths.
In my testing, after enabling the SCTP over UDP:
# ip net exec ha sysctl -w net.sctp.udp_port=9899
# ip net exec ha sysctl -w net.sctp.encap_port=9899
# ip net exec hb sysctl -w net.sctp.udp_port=9899
# ip net exec hb sysctl -w net.sctp.encap_port=9899
# ip net exec ha iperf3 -s
- without this patch:
# ip net exec hb iperf3 -c 192.168.0.1 --sctp
[ 5] 0.00-10.00 sec 37.2 MBytes 31.2 Mbits/sec sender
[ 5] 0.00-10.00 sec 37.1 MBytes 31.1 Mbits/sec receiver
- with this patch:
# ip net exec hb iperf3 -c 192.168.0.1 --sctp
[ 5] 0.00-10.00 sec 3.14 GBytes 2.69 Gbits/sec sender
[ 5] 0.00-10.00 sec 3.14 GBytes 2.69 Gbits/sec receiver
📍 영향받는 시스템
SCTP over UDP를 사용하는 Linux 커널 시스템 (특정 커밋 6f1a9140ecda 이후 버전)
⚔️ 공격 벡터
로컬 환경에서의 네트워크 트래픽 유발을 통한 서비스 거부(DoS) 또는 성능 저하
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인하십시오.