🇰🇷 한글 설명
Linux 커널의 XFS 파일 시스템에서 exchmaps 예약 한도 체크 오류가 수정되었습니다. xfs_exchmaps_estimate_overhead() 함수가 오버헤드를 계산하여 resblks 변수에 저장하지만, 최종 UINT_MAX 한도 검사는 오버헤드가 더해지기 전의 값을 기준으로 수행되는 결함이 있었습니다.
💡 쉬운 설명
파일 시스템이 데이터를 저장할 공간을 예약할 때, 실제 필요한 양보다 적게 계산되어 한도를 초과할 수 있는 오류가 있었습니다. 이로 인해 시스템의 메모리나 자원 관리에 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix exchmaps reservation limit check
xfs_exchmaps_estimate_overhead() adds the bmbt and rmapbt
overhead to a local resblks variable, but the final UINT_MAX
check still tests req->resblks. That is the reservation value
from before the overhead was added.
The computed value is stored back in req->resblks and later passed
to xfs_trans_alloc(), whose block reservation argument is unsigned
int. Check the computed reservation so the existing limit applies
to the value that will be used.
📍 영향받는 시스템
XFS 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 파일 시스템 작업을 통해 자원 예약 한도를 우회할 수 있음
🛡️ 대응 방법
XFS 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인