🇰🇷 한글 설명
Linux 커널의 IPVS 구성 요소에서 ip_vs_conn_new 함수가 ip_vs_seq 구조체를 완전히 초기화하지 않아 발생하는 취약점입니다. 동기화 메시지를 통해 생성된 연결에서 초기화되지 않은 슬랩(slab) 메모리 데이터가 TCP 시퀀스 번호에 포함될 수 있으며, 이는 데이터 오염이나 잘못된 패킷 전달로 이어질 수 있습니다.
💡 쉬운 설명
리눅스 네트워크 관리 기능에서 메모리를 깨끗이 비우지 않고 사용하여, 예전에 사용하던 쓰레기 데이터가 네트워크 패킷에 섞여 들어갈 수 있는 문제입니다. 공격자가 특수하게 조작된 메시지를 보내면 네트워크 통신 흐름을 방해하거나 데이터를 변조할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ipvs: reset full ip_vs_seq structs in ip_vs_conn_new
Commit 9a05475cebdd ("ipvs: avoid kmem_cache_zalloc in
ip_vs_conn_new") changed ip_vs_conn_new() to allocate an ip_vs_conn
object with kmem_cache_alloc(). The function then initializes many
fields explicitly, but only resets in_seq.delta and out_seq.delta in the
two struct ip_vs_seq members.
That leaves init_seq and previous_delta uninitialized. This is normally
harmless while the corresponding IP_VS_CONN_F_IN_SEQ or
IP_VS_CONN_F_OUT_SEQ flag is clear. For connections learned from a sync
message, however, ip_vs_proc_conn() preserves those flags from
IP_VS_CONN_F_BACKUP_MASK and passes opt=NULL when the message omits
IPVS_OPT_SEQ_DATA. In that case the new connection can be hashed with
SEQ flags set but with the rest of in_seq/out_seq still containing stale
slab data.
When a packet for such a connection is later handled by an IPVS
application helper, vs_fix_seq() and vs_fix_ack_seq() use
previous_delta and init_seq to rewrite TCP sequence numbers. A malformed
sync message can therefore make forwarded packets carry stale slab bytes
in their TCP seq/ack numbers, and can also corrupt the forwarded TCP
flow.
Reset both struct ip_vs_seq members completely before publishing the
connection. This matches the existing "reset struct ip_vs_seq" comment
and keeps the sequence-adjustment gates inactive unless valid sequence
data is installed later.
📍 영향받는 시스템
IPVS(IP Virtual Server) 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 IPVS 동기화(sync) 메시지를 전송하여 초기화되지 않은 메모리 값을 TCP 시퀀스 번호에 주입
🛡️ 대응 방법
ip_vs_conn_new 함수에서 ip_vs_seq 구조체를 완전히 초기화하도록 수정된 최신 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 커밋(9a05475cebdd) 이후의 버전인지 확인