🇰🇷 한글 설명
Linux 커널의 xfrm 및 af_key 구성 요소에서 네트워크 네임스페이스(netns)를 제대로 구분하지 못하는 취약점이 발견되었습니다. 이로 인해 특정 네트워크 네임스페이스의 이동 알림이 init_net으로 잘못 전달되거나, 일반 네임스페이스 내의 IKE 데몬이 자신의 이동 알림을 받지 못하는 문제가 발생합니다.
💡 쉬운 설명
컴퓨터 내부의 가상 네트워크 공간들이 서로의 정보를 잘못 공유하거나, 정작 자기 자신의 네트워크 변경 사항을 알지 못하는 문제입니다. 이로 인해 보안 연결을 관리하는 프로그램이 네트워크 이동을 제대로 처리하지 못할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfrm: route MIGRATE notifications to caller's netns
xfrm_send_migrate() in net/xfrm/xfrm_user.c and pfkey_send_migrate()
in net/key/af_key.c both hardcode &init_net for the multicast that
announces a successful XFRM_MSG_MIGRATE / SADB_X_MIGRATE.
XFRM_MSG_MIGRATE arrives on a per-netns NETLINK_XFRM socket, and the
rest of the xfrm/af_key netlink path was made netns-aware in 2008.
The other 14 multicast paths in xfrm_user.c route their event using
xs_net(x), xp_net(xp) or sock_net(skb->sk); only the migrate path
was missed.
Two consequences of the init_net hardcoding:
1. The notification (selector, old/new endpoint addresses, and the
km_address) is delivered to listeners on init_net's
XFRMNLGRP_MIGRATE / pfkey BROADCAST_ALL groups rather than on
the issuing netns. An IKE daemon running in init_net therefore
receives migration notifications originating from any other
netns on the host.
2. An IKE daemon running inside a non-init netns and subscribed
to its own XFRMNLGRP_MIGRATE / pfkey groups never receives the
notification of its own migration. IKEv2 MOBIKE / address-update
handling inside a netns is silently broken.
Thread struct net through km_migrate() and the xfrm_mgr.migrate
function pointer, drop the &init_net override in xfrm_send_migrate()
and pfkey_send_migrate(), and pass the caller's net (already in
scope in xfrm_migrate() via sock_net(skb->sk)) all the way down.
struct xfrm_mgr is in-tree only and not exported as a stable API,
so the function-pointer signature change is internal.
pfkey_broadcast() is already netns-aware via net_generic(net,
pfkey_net_id) since the pernet conversion. The five other
pfkey_broadcast() callers in af_key.c already pass xs_net(x),
sock_net(sk) or a per-netns net, so this only removes the
&init_net outlier.
📍 영향받는 시스템
Linux kernel (xfrm 및 af_key 모듈을 사용하는 시스템)
⚔️ 공격 벡터
네트워크 네임스페이스 간의 정보 격리 실패를 이용한 데이터 노출 또는 네트워크 서비스 기능 장애 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.