🇰🇷 한글 설명
Linux 커널의 ext4 파일 시스템에서 블록 비트맵이 손상된 그룹으로부터 블록을 할당하는 취약점이 발견되었습니다. ext4_mb_try_best_found() 함수 호출 시 그룹 비트맵의 손상 여부를 사전에 확인하지 않아, 동시성 문제로 인해 손상된 그룹에 블록을 할당할 수 있습니다.
💡 쉬운 설명
파일을 저장할 때 사용하는 지도(비트맵)가 망가졌는데도 시스템이 이를 확인하지 않고 계속 사용하려고 시도하는 문제입니다. 이로 인해 데이터가 엉뚱한 곳에 저장되거나 파일 시스템이 더 크게 망가질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ext4: avoid allocating blocks from corrupted group in ext4_mb_try_best_found()
Determine if the group block bitmap is corrupted before using ac_b_ex in
ext4_mb_try_best_found() to avoid allocating blocks from a group with a
corrupted block bitmap in the following concurrency and making the
situation worse.
ext4_mb_regular_allocator
ext4_lock_group(sb, group)
ext4_mb_good_group
// check if the group bbitmap is corrupted
ext4_mb_complex_scan_group
// Scan group gets ac_b_ex but doesn't use it
ext4_unlock_group(sb, group)
ext4_mark_group_bitmap_corrupted(group)
// The block bitmap was corrupted during
// the group unlock gap.
ext4_mb_try_best_found
ext4_lock_group(ac->ac_sb, group)
ext4_mb_use_best_found
mb_mark_used
// Allocating blocks in block bitmap corrupted group
📍 영향받는 시스템
ext4 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
손상된 파일 시스템 구조를 이용한 로컬 공격 또는 특정 동시성 상황 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.