🇰🇷 한글 설명
Linux 커널의 VXLAN 드라이버에서 동적 FDB 엔트리가 nexthop ID를 참조할 때 발생하는 취약점입니다. 두 VXLAN 장치가 동일한 FDB nexthop을 공유할 경우, 소프트인터럽트(softirq) 컨텍스트에서 리스트 삭제 과정 중 경합 조건이 발생하여 커널 리스트 손상 및 Use-After-Free 오류를 유발할 수 있습니다.
💡 쉬운 설명
네트워크 연결을 관리하는 리눅스 시스템의 특정 기능에서 데이터 처리 순서가 꼬여 시스템이 충돌하거나 오류가 발생할 수 있는 문제입니다. 잘못된 설정이 입력될 경우 컴퓨터의 핵심 메모리 영역이 손상될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
vxlan: reject dynamic fdb entries that reference a nexthop id
The commit cited in the Fixes tag allowed VXLAN FDB entries to point to
FDB nexthops so that overlay traffic could be load balanced across
multiple VTEPs. Such entries can only be configured from user space,
cannot be learned and cannot roam. They only make sense with a user space
control plane such as E-VPN where data plane learning is disabled.
Despite that, the VXLAN driver does not currently prevent such entries
from being configured with the "dynamic" flag. The per-nexthop FDB list
is only protected by the per-device hash lock, which is not sufficient
when two VXLAN devices point to the same FDB nexthop and therefore share
the list. Aging runs in softirq context without RTNL, so an entry deleted
by one device can race with an addition or deletion from the other,
leading to list corruption:
list_del corruption. next->prev should be ffff8881069d9548, but was
dead000000000122. (next=ffff8881069d9448)
WARNING: CPU: 0 PID: 90 at lib/list_debug.c:65
__list_del_entry_valid_or_report+0x1aa/0x210
...
vxlan_fdb_destroy+0x5b8/0xad0
vxlan_cleanup+0x328/0x450
call_timer_fn+0x2a/0x1c0
run_timer_softirq+0x18c/0x210
BUG: KASAN: slab-use-after-free in vxlan_fdb_destroy
Fix this by rejecting the bogus configuration of dynamic FDB entries that
point to FDB nexthops, both when created and when an existing entry is
updated. As such, the per-nexthop FDB list is only ever mutated under the
RTNL lock. Add test cases to make sure that this does not regress in the
future.
📍 영향받는 시스템
Linux Kernel (VXLAN 드라이버를 사용하는 모든 버전)
⚔️ 공격 벡터
사용자 공간(User space)에서 조작된 동적 VXLAN FDB 엔트리를 구성하여 커널 내 경합 조건을 유도함
🛡️ 대응 방법
VXLAN 드라이버가 nexthop ID를 참조하는 동적 FDB 엔트리 설정을 거부하도록 커널을 업데이트하거나 패치함
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 보안 패치 버전인지 확인합니다.