🇰🇷 한글 설명
Linux 커널의 ocfs2 파일 시스템에서 unmount 과정 중 NULL 포인터 역참조가 발생하는 취약점입니다. ocfs2_journal_shutdown() 호출로 저널이 해제된 후, VFS가 캐시된 inode를 제거하는 과정에서 이미 NULL이 된 저널을 참조하여 시스템 오류를 유발할 수 있습니다.
💡 쉬운 설명
파일 시스템을 종료하는 과정에서 이미 삭제된 데이터를 다시 확인하려다 컴퓨터가 혼란에 빠져 오류가 발생하는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 비정정상적으로 종료될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: add journal NULL check in ocfs2_checkpoint_inode()
During unmount, ocfs2_journal_shutdown() frees the journal and sets
osb->journal to NULL. Later, when VFS evicts remaining cached inodes,
ocfs2_evict_inode() -> ocfs2_clear_inode() -> ocfs2_checkpoint_inode()
-> ocfs2_ci_fully_checkpointed() dereferences osb->journal, causing a
NULL pointer dereference.
Fix this by adding a NULL check for osb->journal in
ocfs2_checkpoint_inode(). If the journal is NULL, it has already been
fully flushed and destroyed during shutdown, so there is nothing to
checkpoint.
📍 영향받는 시스템
Linux kernel (ocfs2 파일 시스템을 사용하는 버전)
⚔️ 공격 벡터
로컬 사용자가 파일 시스템을 언마운트(unmount)하는 정상적인 동작 과정에서 발생할 수 있는 시스템 오류 유발
🛡️ 대응 방법
ocfs2_checkpoint_inode() 함수에 저널 NULL 체크 로직이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인