🔍 CVE-2023-53477

5.5
CVSS Score
MEDIUM
2025-10-01
2026-11-05 21:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 IPv6 라우팅 코드에서 rt6_nlmsg_size() 함수가 nexthop 길이를 계산할 때, 첫 번째 fib6_info에 lwtunnel이 없고 형제(sibling) 경로에만 lwtunnel이 있는 경우 크기가 부족하게 계산되어 inet6_rt_notify()에서 경고가 발생하는 문제입니다. 패치는 모든 sibling의 nexthop 길이를 rt6_nh_nlmsg_size()로 합산하도록 수정합니다.

💡 쉬운 설명

IPv6 경로 설정 시 커널이 메모리 크기를 잘못 계산해 경고 메시지가 발생하는 문제입니다. 주로 시스템 안정성에 영향을 주며, 커널 업데이트로 해결됩니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ipv6: Add lwtunnel encap size of all siblings in nexthop calculation In function rt6_nlmsg_size(), the length of nexthop is calculated by multipling the nexthop length of fib6_info and the number of siblings. However if the fib6_info has no lwtunnel but the siblings have lwtunnels, the nexthop length is less than it should be, and it will trigger a warning in inet6_rt_notify() as follows: WARNING: CPU: 0 PID: 6082 at net/ipv6/route.c:6180 inet6_rt_notify+0x120/0x130 ...... Call Trace: <TASK> fib6_add_rt2node+0x685/0xa30 fib6_add+0x96/0x1b0 ip6_route_add+0x50/0xd0 inet6_rtm_newroute+0x97/0xa0 rtnetlink_rcv_msg+0x156/0x3d0 netlink_rcv_skb+0x5a/0x110 netlink_unicast+0x246/0x350 netlink_sendmsg+0x250/0x4c0 sock_sendmsg+0x66/0x70 ___sys_sendmsg+0x7c/0xd0 __sys_sendmsg+0x5d/0xb0 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc This bug can be reproduced by script: ip -6 addr add 2002::2/64 dev ens2 ip -6 route add 100::/64 via 2002::1 dev ens2 metric 100 for i in 10 20 30 40 50 60 70; do ip link add link ens2 name ipv_$i type ipvlan ip -6 addr add 2002::$i/64 dev ipv_$i ifconfig ipv_$i up done for i in 10 20 30 40 50 60; do ip -6 route append 100::/64 encap ip6 dst 2002::$i via 2002::1 dev ipv_$i metric 100 done ip -6 route append 100::/64 via 2002::1 dev ipv_70 metric 100 This patch fixes it by adding nexthop_len of every siblings using rt6_nh_nlmsg_size().

📍 영향받는 시스템

수정 이전의 Linux 커널 버전을 사용하는 IPv6 라우팅 설정 환경 전반

⚔️ 공격 벡터

권한이 있는 사용자가 lwtunnel 캡슐화가 포함된 여러 IPv6 경로를 추가하면 커널 경고(WARNING)를 유발할 수 있음

🛡️ 대응 방법

배포판 벤더가 제공하는 수정된 Linux 커널 패키지로 업데이트 후 재부팅

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지에서 확인된 수정 버전과 비교하며, 같거나 더 높은 패치 버전이면 수정된 것입니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel