🇰🇷 한글 설명
Linux 커널의 HSR(High-availability Seamless Redundancy) 네트워크 서브시스템에서 RCU(Read-Copy-Update) 보호 메커니즘이 누락되어 발생하는 Use-After-Free 취약점입니다. 노드 삭제 시 RCU 리더가 작업을 완료하기 전에 메모리가 즉시 해제되어 데이터 접근 오류가 발생할 수 있습니다.
💡 쉬운 설명
네트워크 장치 정보를 읽는 도중에 해당 정보가 담긴 메모리가 갑자기 삭제되어 시스템 오류를 일으키는 문제입니다. 이로 인해 시스템이 충돌하거나 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: hsr: defer node table free until after RCU readers
HSR node-list and node-status generic-netlink operations run under
rcu_read_lock(). They walk hsr->node_db through hsr_get_next_node() and
hsr_get_node_data(), but RTM_DELLINK teardown removes the same node table
with plain list_del() and frees each node immediately.
That lets a generic-netlink reader hold a struct hsr_node pointer across
hsr_dellink(). In a KASAN build, widening the reader window after
hsr_get_next_node() obtains the node reproduces a slab-use-after-free
when the reader copies node->macaddress_A; the freeing stack is
hsr_del_nodes() from hsr_dellink().
Use list_del_rcu() and defer the free through the existing
hsr_free_node_rcu() callback. This matches the lifetime rule used by the
HSR prune paths, which already delete nodes with list_del_rcu() and
call_rcu().
📍 영향받는 시스템
HSR(High-availability Seamless Redundancy) 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 네트워크 링크 삭제(RTM_DELLINK)를 유도하여 메모리 해제와 데이터 읽기 사이의 타이밍 차이를 이용한 Use-After-Free 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 list_del_rcu() 및 hsr_free_node_rcu() 콜백이 적용된 상태로 유지하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 릴리스 버전인지 확인하십시오.