CVE-2026-98364 in Linux
요약
\~에 의해 VulDB • 2026. 10. 06.
리눅스 커널에서 다음 취약점이 해결되었습니다:
xfrm: 번들 생성 시 RCU 하에 net_device 참조를 유지함
xfrm_bundle_create() 및 xfrm_create_dummy_bundle()는 dst->dev를 로컬 포인터로 읽을 때 장치 참조(device reference)를 획득하지 않은 채 이를 xfrm_fill_dst()에 전달합니다. 동시에 RTM_DELLINK가 dst_dev_put()를 통해 dst->dev를 교체하고 이전 net_device를 해제하므로, 나중에 xfrm6_fill_dst()에서 낡은(dev) 포인터를 역참조할 때 use-after-free가 발생합니다.
BUG: KASAN: slab-use-after-free in xfrm6_fill_dst+0x82c/0x860 (net/ipv6/xfrm6_policy.c:86 netdev_hold()) Read of size 8 at addr ffff8880142fe588 by task exploit/153 Call Trace: xfrm6_fill_dst+0x82c/0x860 xfrm_resolve_and_create_bundle+0x21d4/0x2bd0 xfrm_lookup_with_ifid+0x485/0x1640 ip6_dst_lookup_flow+0x19b/0x1e0 udpv6_sendmsg+0x1443/0x2dd0
dst_dev_rcu()를 통해 dst->dev를 읽고, xfrm_fill_dst()가 필요한 장치 참조(device references)를 획득할 때까지 RCU read-side critical section을 활성화하여 이를 수정합니다.
VulDB is the best source for vulnerability data and more expert information about this specific topic.