🇰🇷 한글 설명
Linux 커널의 VXLAN 구현에서 FDB(Forwarding Database) 플러시 과정 중 마지막 원격 엔티티가 적절히 유지되지 않아 발생하는 취약점입니다. 이로 인해 RCU 리더가 유효하지 않은 포인터를 참조하게 되어 메모리 오류가 발생할 수 있습니다.
💡 쉬운 설명
네트워크 연결 정보를 정리하는 과정에서 데이터가 삭제되는 순서가 잘못되어 시스템이 잘못된 메모리 주소를 읽게 되는 문제입니다. 이로 인해 시스템이 불안정해지거나 예상치 못한 동작을 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
vxlan: keep the last remote linked during FDB flush
A non-nexthop FDB entry is expected to have at least one remote while it
remains reachable through the FDB hash table. A filtered bulk flush
violates this invariant when every remote matches: It unlinks the last
remote in vxlan_fdb_dst_destroy() and only afterwards tells vxlan_flush()
to destroy the parent FDB entry.
An RCU reader can find the parent during this interval.
first_remote_rcu() then applies list_entry_rcu() to the empty list head,
producing an invalid remote pointer that the receive learning path can
read from and write to.
When a matching remote is the sole remaining remote, leave it linked and
ask the caller to destroy the entire FDB entry. vxlan_fdb_destroy() keeps
the remote attached while sending the deletion notification and removing
the parent from the lookup structures.
📍 영향받는 시스템
VXLAN 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특정 네트워크 패킷을 전송하여 VXLAN FDB 플러시를 유도함으로써 메모리 손상을 유발할 수 있음
🛡️ 대응 방법
VXLAN FDB 관리 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인