🇰🇷 한글 설명
Linux 커널의 shmem 구성 요소에서 rename 작업 중 메모리 부족으로 인해 발생할 수 있는 복구 오류 취약점입니다. maple_tree 삽입 실패 시 적절한 복구가 이루어지지 않거나, shmem_whiteout 이후 d_move 단계에서 실패가 발생할 수 있는 문제가 해결되었습니다.
💡 쉬운 설명
파일의 이름을 바꾸는 과정에서 컴퓨터의 메모리가 부족할 때, 시스템이 오류를 제대로 처리하지 못해 문제가 생길 수 있는 결함입니다. 이로 인해 파일 시스템의 상태가 꼬이거나 예상치 못한 동작이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
shmem: fix recovery on rename failures
maple_tree insertions can fail if we are seriously short on memory;
simple_offset_rename() does not recover well if it runs into that.
The same goes for simple_offset_rename_exchange().
Moreover, shmem_whiteout() expects that if it succeeds, the caller will
progress to d_move(), i.e. that shmem_rename2() won't fail past the
successful call of shmem_whiteout().
Not hard to fix, fortunately - mtree_store() can't fail if the index we
are trying to store into is already present in the tree as a singleton.
For simple_offset_rename_exchange() that's enough - we just need to be
careful about the order of operations.
For simple_offset_rename() solution is to preinsert the target into the
tree for new_dir; the rest can be done without any potentially failing
operations.
That preinsertion has to be done in shmem_rename2() rather than in
simple_offset_rename() itself - otherwise we'd need to deal with the
possibility of failure after successful shmem_whiteout().
📍 영향받는 시스템
Linux Kernel (shmem 및 maple_tree 관련 모듈을 사용하는 버전)
⚔️ 공격 벡터
메모리 부족 상황을 유도하여 파일 이름 변경(rename) 작업을 수행함으로써 시스템의 파일 시스템 무결성을 해칠 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.