🇰🇷 한글 설명
Linux 커널의 NILFS2 파일 시스템에서 unmount 과정 중 nilfs_root 구조체를 참조하는 nilfs_evict_inode() 함수에서 Use-After-Free 취약점이 발생합니다. 로그 라이터가 분리된 후에도 특정 inode가 garbage_list에 남아 있으면 해제된 메모리에 접근하여 읽기 오류를 유발할 수 있습니다.
💡 쉬운 설명
파일 시스템을 종료하는 과정에서 이미 삭제된 메모리 정보를 다시 사용하려고 시도하여 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()
During unmount process of nilfs2, nothing holds nilfs_root structure after
nilfs2 detaches its writer in nilfs_detach_log_writer(). However, since
nilfs_evict_inode() uses nilfs_root for some cleanup operations, it may
cause use-after-free read if inodes are left in "garbage_list" and
released by nilfs_dispose_list() at the end of nilfs_detach_log_writer().
Fix this issue by modifying nilfs_evict_inode() to only clear inode
without additional metadata changes that use nilfs_root if the file system
is degraded to read-only or the writer is detached.
📍 영향받는 시스템
NILFS2 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 특정 파일 시스템 조작을 통해 메모리 오류 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인