🇰🇷 한글 설명
Linux 커널의 rose 네트워크 서브시스템에서 rose_neigh 객체의 참조 횟수 관리 방식이 불일치하여 발생하는 취약점입니다. 기존의 서로 다른 두 참조 카운팅 메커니즘을 하나로 통합하여, 객체가 사용 중임에도 메모리에서 해제되는 Slab Use-After-Free 문제를 해결했습니다.
💡 쉬운 설명
컴퓨터 메모리에서 사용 중인 데이터를 실수로 지워버려 발생하는 오류입니다. 이 오류를 이용하면 해커가 시스템을 공격하거나 강제로 종료시킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: rose: include node references in rose_neigh refcount
Current implementation maintains two separate reference counting
mechanisms: the 'count' field in struct rose_neigh tracks references from
rose_node structures, while the 'use' field (now refcount_t) tracks
references from rose_sock.
This patch merges these two reference counting systems using 'use' field
for proper reference management. Specifically, this patch adds incrementing
and decrementing of rose_neigh->use when rose_neigh->count is incremented
or decremented.
This patch also modifies rose_rt_free(), rose_rt_device_down() and
rose_clear_route() to properly release references to rose_neigh objects
before freeing a rose_node through rose_remove_node().
These changes ensure rose_neigh structures are properly freed only when
all references, including those from rose_node structures, are released.
As a result, this resolves a slab-use-after-free issue reported by Syzbot.
📍 영향받는 시스템
Linux Kernel (rose 네트워크 서브시스템을 사용하는 버전)
⚔️ 공격 벡터
특정 네트워크 경로(rose)를 조작하여 객체의 참조 횟수를 불일치시킴으로써 메모리 해제 후 재사용 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인