🇰🇷 한글 설명
Linux 커널의 mac80211 WiFi 드라이버에서 메쉬 패스트 전송(mesh fast xmit) 경로 삭제 시 Use-After-Free(UAF) 취약점이 발견되었습니다. 경로 삭제 과정에서 캐시를 비운 후 메모리를 해제하지만, 이미 경로를 참조 중인 작업이 삭제된 메모리에 새로운 캐시 항목을 삽입할 수 있어 발생합니다.
💡 쉬운 설명
무선 네트워크 연결 정보를 관리하는 메모리 공간을 삭제하는 과정에서 오류가 발생하여, 이미 삭제된 메모리 영역을 다시 사용하게 되는 문제입니다. 이로 인해 시스템이 불안정해지거나 보안 공격에 악용될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: fix mesh fast xmit path deletion UAF
mesh_fast_tx_cache() stores raw mesh_path pointers. Path deletion
flushes the cache and then frees the path with kfree_rcu(), but a
lookup that already holds the path can insert a new cache entry
after the flush. The cache then points at freed memory.
Set MESH_PATH_DELETED before flushing, and skip inserting a cache
entry if the path or MPP path is already deleted. Check this under
the cache walk lock so it is ordered with the flush. Use WRITE_ONCE()
for the deletion flag updates because the cache check reads flags
without taking state_lock.
📍 영향받는 시스템
Linux kernel (mac80211 subsystem)
⚔️ 공격 벡터
특정 네트워크 환경에서 메쉬 경로 삭제와 캐시 조회 작업이 동시에 발생하도록 유도하여 메모리 오류 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인