🇰🇷 한글 설명
Linux 커널의 afs 파일 시스템에서 디렉토리 블록을 해제할 때 발생하는 이중 언맵(double-unmap) 취약점입니다. afs_edit_dir_remove() 함수가 블록을 수동으로 해제하는 과정에서 포인터를 적절히 초기화하지 않아, 특정 조건에서 동일한 블록을 두 번 해제하려는 시도가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 메모리 관리 과정에서 이미 사용이 끝난 메모리 영역을 실수로 두 번 지우려고 시도하는 오류입니다. 이로 인해 시스템이 불안정해지거나 예기치 않은 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
afs: Fix double-unmap of directory block
Fix afs_edit_dir_remove() to use a cleanup function to unmap the block
pointed to by afs_dir_iter::block if it's left pointing to something rather
than manually kunmapping the blocks. Manually kunmapping without clearing
iter.blocks can result in a double-kunmap if afs_dir_find_block() is called
twice in a row (which would be the case if the block being modified is not
first in the hash chain).
📍 영향받는 시스템
Linux kernel (afs 파일 시스템을 사용하는 버전)
⚔️ 공격 벡터
로컬 사용자가 afs 파일 시스템 내의 디렉토리 구조를 조작하여 특정 조건의 함수 호출을 유도함
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 afs_edit_dir_remove() 함수 수정 사항을 반영함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.