CVE-2025-68813 in Linux정보

요약

\~에 의해 VulDB • 2026. 06. 11.

리눅스 커널에서 다음 취약점이 해결되었습니다:

ipvs: 라우팅 오류 경로에서 IPv4 null-ptr-deref 수정

__ip_vs_get_out_rt()의 IPv4 코드 경로는 skb->dev가 설정되었는지 확인하지 않은 채 dst_link_failure()를 호출하여, ipv4_link_failure()가 ICMP 목적지 도달 불가 메시지를 전송하려고 시도할 때 fib_compute_spec_dst()에서 NULL 포인터 역참조(null-ptr-deref)가 발생합니다.

이 문제는 commit ed0de45a1008("ipv4: recompile ip options in ipv4_link_failure")이 ipv4_link_failure()에서 __ip_options_compile()를 호출하기 시작하면서 나타났습니다. 이 코드 경로는 결국 skb->dev를 역참조하는 fib_compute_spec_dst()를 호출합니다. commit 0113d9c9d1cc("ipv4: fix null-deref in ipv4_link_failure")에서 NULL skb->dev 역참조를 수정하려는 시도가 있었지만, 이는 폴백 장치를 사용하여 즉각적인 dev_net(skb->dev) 역참조만 처리했을 뿐입니다. 호출 체인 후반부에 있는 fib_compute_spec_dst()가 여전히 skb->dev에 직접 접근하기 때문에 수정이 불완전했으며, IPVS가 dst_link_failure()를 호출할 때 skb->dev는 NULL 상태입니다.

다음과 같은 상황에서 크래시가 발생합니다: 1. IPVS가 잘못된 목적지로 NAT 모드에서 패킷을 처리함 2. 라우트 설정 전에 __ip_vs_get_out_rt()에서 라우트 조회가 실패함 3. 오류 경로에서 skb->dev == NULL인 상태로 dst_link_failure(skb)를 호출함 4. ipv4_link_failure() → ipv4_send_dest_unreach() → __ip_options_compile() → fib_compute_spec_dst() 5. fib_compute_spec_dst()에서 NULL skb->dev를 역참조함

commit 326bf17ea5d4("ipvs: fix ipv6 route unreach panic")에서 IPv6에 적용된 것과 동일한 수정을 적용하십시오: dst_link_failure() 호출 전에 skb->dev를 skb_dst(skb)->dev에서 설정하십시오.

KASAN: null-ptr-deref in range [0x0000000000000328-0x000000000000032f]
CPU: 1 PID: 12732 Comm: syz.1.3469 Not tainted 6.6.114 #2 RIP: 0010:__in_dev_get_rcu include/linux/inetdevice.h:233 RIP: 0010:fib_compute_spec_dst+0x17a/0x9f0 net/ipv4/fib_frontend.c:285 Call Trace: <TASK> spec_dst_fill net/ipv4/ip_options.c:232 spec_dst_fill net/ipv4/ip_options.c:229 __ip_options_compile+0x13a1/0x17d0 net/ipv4/ip_options.c:330 ipv4_send_dest_unreach net/ipv4/route.c:1252 ipv4_link_failure+0x702/0xb80 net/ipv4/route.c:1265 dst_link_failure include/net/dst.h:437 __ip_vs_get_out_rt+0x15fd/0x19e0 net/netfilter/ipvs/ip_vs_xmit.c:412 ip_vs_nat_xmit+0x1d8/0xc80 net/netfilter/ipvs/ip_vs_xmit.c:764

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

책임이 있는

Linux

예약하다

2025. 12. 24.

모더레이션

수락

항목

VDB-340637

EPSS

0.00173

출처

Want to stay up to date on a daily basis?

Enable the mail alert feature now!