🇰🇷 한글 설명
Linux 커널의 XFS 파일 시스템에서 xfs_metafile_resv_init 함수 호출 시 hidden_space 값이 음수가 될 수 있는 취약점이 발견되었습니다. 이로 인해 산술 언더플로우가 발생하여 xfs_dec_fdblocks가 매우 큰 양의 공간을 차감하게 되는 논리적 오류가 존재합니다.
💡 쉬운 설명
파일 시스템이 남은 공간을 계산할 때 계산 오류로 인해 실제보다 훨씬 많은 공간을 사용 중인 것으로 잘못 인식할 수 있는 문제입니다. 이 오류는 시스템의 파일 저장 공간 관리 로직에 혼란을 줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't let hidden_space go negative in xfs_metafile_resv_init
LOLLM points out that if the amount of fdblocks that we can reserve for
a metadata btree file goes below the space already used by that file,
then the hidden_space subtraction can underflow, causing
xfs_dec_fdblocks to subtract a huge amount of space. We never want the
target to be less than the used sapce, so fix the logic that adjusts
dblocks_avail downwards.
Also fix an error in the adjacent comment.
📍 영향받는 시스템
XFS 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 메타데이터 B-tree 파일을 생성하여 파일 시스템의 공간 계산 로직을 트리거함
🛡️ 대응 방법
XFS 메타데이터 예약 공간 계산 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인