🇰🇷 한글 설명
리눅스 커널의 브리지 멀티캐스트(net: bridge: mcast) 코드에서, 포트 그룹을 순회하며 삭제할 때 다음 노드 포인터가 손실되어 순회가 조기 종료되는 문제가 수정되었습니다. 이로 인해 포트 해제 후에도 남은 포트 그룹이 해제된 메모리를 참조하여 KASAN 기준 use-after-free가 발생할 수 있었습니다.
💡 쉬운 설명
네트워크 브리지가 멀티캐스트 그룹 정보를 정리하는 과정에서 잘못된 메모리를 참조하는 결함입니다. 이 결함으로 시스템이 비정상 동작하거나 충돌할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: bridge: mcast: don't truncate the port group walk on teardown
__br_multicast_disable_port_ctx() and br_multicast_del_port() walk
port->mglist with hlist_for_each_entry_safe(). However,
br_multicast_find_del_pg() can also delete other entries from the same
list through br_multicast_fwd_src_remove() or __fwd_del_star_excl().
If such an entry is the iterator's saved next node, hlist_del_init()
clears its ->next and terminates the walk early. The reproducer triggers
this in both teardown walks, leaving port groups in the bridge mdb with
a dangling ->key.port after del_nbp() frees the port:
BUG: KASAN: slab-use-after-free in __mdb_fill_info+0x1191/0x1320
__mdb_fill_info+0x1191/0x1320
br_mdb_dump+0x594/0xe40
rtnl_mdb_dump+0x1cf/0x5d0
Use hlist_del_init_rcu() to unlink the group while preserving ->next.
br_multicast_del_pg() and the teardown walks run under
br->multicast_lock. The GC worker must acquire the same lock before
detaching the group for destruction, so the node remains alive while
the walk uses the preserved pointer.
Preserving ->next means a walk can now reach a group that an earlier
iteration already deleted as a side effect. That group is off mp->ports,
so br_multicast_find_del_pg() would fall through its port scan and hit
the trailing WARN_ON(1). Skip such groups at the top of that helper: a
port group is put on port->mglist when it is created and only unlinked
when it is deleted, so hlist_unhashed() identifies exactly this case.
📍 영향받는 시스템
패치가 적용되지 않은 Linux 커널 (브리지 멀티캐스트 기능 사용 시, 정확한 영향 버전은 커널 changelog 확인 필요)
⚔️ 공격 벡터
로컬 또는 인접 네트워크 환경에서 브리지 멀티캐스트 그룹을 조작하여 메모리 손상 또는 커널 불안정을 유발할 수 있음
🛡️ 대응 방법
배포판에서 제공하는 해당 CVE 수정이 포함된 최신 커널로 업데이트 후 재부팅
🔧 검증 코드
출력된 커널 버전을 배포판 보안 공지 또는 패치 목록과 대조하여, 수정 커밋이 포함된 버전인지 확인 (수정 여부가 불명확하면 패키지 관리자의 changelog에서 CVE-2026-99117 검색)