🇰🇷 한글 설명
Linux 커널의 OCFS2 파일 시스템에서 발생한 취약점으로, 손상된 append-DIO dinode의 i_dio_orphaned_slot 값이 유효 범위를 벗어날 경우 Use-After-Free 오류가 발생합니다. 이로 인해 시스템 안정성이 저해되거나 커널 메모리 오류가 발생할 수 있습니다.
💡 쉬운 설명
파일 시스템의 데이터가 잘못 기록되어 있을 때, 컴퓨터가 이를 처리하는 과정에서 이미 사용이 끝난 메모리 영역을 다시 참조하여 오류를 일으키는 문제입니다. 이로 인해 시스템이 멈추거나 예상치 못한 동작을 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: validate DIO orphan slot during inode read
[BUG]
A corrupted append-DIO dinode (high byte at offset 0xa1
corrupted from 0 to 1) can carry an i_dio_orphaned_slot
outside the mounted filesystem slot range and trigger a
use-after-free error:
BUG: KASAN: slab-use-after-free in ocfs2_get_system_file_inode+0x780/0x820 fs/ocfs2/sysfile.c:102
Read of size 8 at addr ffff88800b767c00 by task kworker/u8:3/85
Call Trace:
...
ocfs2_get_system_file_inode+0x780/0x820 fs/ocfs2/sysfile.c:102
ocfs2_wipe_inode+0x292/0xf70 fs/ocfs2/inode.c:840
ocfs2_delete_inode fs/ocfs2/inode.c:1155 [inline]
ocfs2_evict_inode+0x6c9/0x1170 fs/ocfs2/inode.c:1295
evict+0x38e/0x8f0 fs/inode.c:810
iput_final fs/inode.c:1914 [inline]
iput fs/inode.c:1966 [inline]
iput+0x55b/0x8b0 fs/inode.c:1926
ocfs2_recover_orphans+0x610/0xe40 fs/ocfs2/journal.c:2374
ocfs2_complete_recovery+0x5af/0xd00 fs/ocfs2/journal.c:1373
...
[CAUSE]
ocfs2_del_inode_from_orphan() uses i_dio_orphaned_slot to index the
slot-local system inode cache. The dinode validator does not check
this active slot, so an out-of-range value produces an invalid cache
entry pointer that is dereferenced as an inode pointer.
[FIX]
Reject an active i_dio_orphaned_slot outside the slot range during
dinode validation, before DIO orphan recovery can consume it.
📍 영향받는 시스템
Linux kernel (OCFS2 파일 시스템을 사용하는 시스템)
⚔️ 공격 벡터
손상된 dinode 데이터를 통한 메모리 오염 및 Use-After-Free 유도
🛡️ 대응 방법
dinode 검증 단계에서 i_dio_orphaned_slot의 범위를 확인하도록 커널을 업데이트해야 합니다.
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인합니다.