🇰🇷 한글 설명
Linux 커널의 ocfs2 파일 시스템에서 FITRIM 범위 검증 오류로 인해 발생하는 취약점입니다. 클러스터 크기보다 짧은 범위를 처리하는 과정에서 산술 연산 언더플로우가 발생하여, 요청된 범위를 벗어난 영역까지 트리밍(trimming)이 수행될 수 있습니다.
💡 쉬운 설명
파일 시스템의 불필요한 데이터를 정리하는 과정에서 계산 오류가 발생하여, 지워서는 안 될 데이터 영역까지 잘못 건드릴 수 있는 문제입니다. 이로 인해 데이터 손실이나 파일 시스템 오류가 발생할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: reject FITRIM ranges shorter than a cluster
ocfs2_trim_mainbm() trims the global bitmap in cluster units, but its
too-short range validation only checks sb->s_blocksize.
On filesystems with a cluster size larger than the block size, a FITRIM
range that is at least one block but shorter than one cluster is accepted
and shifted down to len == 0. The later start + len - 1 and len -= ...
arithmetic then underflows and can drive trimming past the requested
range.
Reject ranges shorter than s_clustersize instead. That preserves the
existing -EINVAL behavior for requests that cannot discard even one
allocation unit and keeps zero-cluster trims out of the group walk.
📍 영향받는 시스템
ocfs2 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 FITRIM 명령을 통해 클러스터 크기보다 작은 범위를 요청하여 산술 언더플로우 유도
🛡️ 대응 방법
ocfs2의 FITRIM 범위 검증 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 확인