🇰🇷 한글 설명
Linux 커널의 ext4 파일 시스템에서 ext4_init_orphan_info 함수 실행 중 buffer_head 메모리 누수가 발생합니다. 오판(orphan) 블록의 매직 넘버나 체크섬 검증이 실패할 경우, 할당된 buffer_head를 적절히 해제하지 못하고 건너뛰는 결함이 있습니다.
💡 쉬운 설명
파일 시스템이 데이터를 읽는 과정에서 오류가 발생했을 때, 사용했던 메모리 자원을 제대로 돌려주지 않고 버리는 문제가 있습니다. 이 문제가 반복되면 시스템의 메모리가 점차 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix buffer_head leak in ext4_init_orphan_info
ext4_init_orphan_info() reads orphan file blocks with ext4_bread()
and stores the returned buffer_head in oi->of_binfo[i].ob_bh.
If ext4_bread() succeeds but the orphan block magic or checksum
validation fails, the function jumps to out_free. However, the old
out_free loop starts releasing buffers from i - 1, so the current
buffer_head at index i is skipped.
This leaks the buffer_head reference obtained by ext4_bread() on the
bad magic and bad checksum error paths.
Fix this by tracking the number of successfully read buffer_heads and
releasing exactly those buffer_heads on the error path.
📍 영향받는 시스템
Linux kernel (ext4 파일 시스템을 사용하는 모든 버전)
⚔️ 공격 벡터
조작된 파일 시스템 이미지나 손상된 블록을 통해 오류 경로를 유도하여 메모리 누수 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인