🇰🇷 한글 설명
Linux 커널의 NILFS2 파일 시스템에서 비정상 종료 후 마운트 시 데이터 복구 과정 중 데이터 손상이 발생할 수 있는 취약점입니다. 블록 크기가 페이지 크기보다 작은 환경에서 복구 데이터를 페이지 캐시에 복사할 때 오프셋 계산 오류로 인해 데이터가 손상되거나 초기화되지 않은 메모리 바이트가 유출될 수 있습니다.
💡 쉬운 설명
컴퓨터가 갑자기 꺼진 후 다시 켜질 때 파일을 복구하는 과정에서 계산 실수가 발생하여 파일 내용이 망가지거나 보안 정보가 새나갈 수 있는 문제입니다. 특히 특정 설정의 파일 시스템을 사용하는 경우에 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix data corruption in dsync block recovery for small block sizes
The helper function nilfs_recovery_copy_block() of
nilfs_recovery_dsync_blocks(), which recovers data from logs created by
data sync writes during a mount after an unclean shutdown, incorrectly
calculates the on-page offset when copying repair data to the file's page
cache. In environments where the block size is smaller than the page
size, this flaw can cause data corruption and leak uninitialized memory
bytes during the recovery process.
Fix these issues by correcting this byte offset calculation on the page.
📍 영향받는 시스템
NILFS2 파일 시스템을 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
비정상적인 시스템 종료 후 재부팅 시 발생하는 자동 복구 프로세스를 통한 데이터 손상 및 메모리 유출
🛡️ 대응 방법
NILFS2 관련 수정 사항이 포함된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 패치된 최신 버전인지 확인