🇰🇷 한글 설명
Linux 커널의 XFS 파일 시스템에서 ILOCK 사이클링 중 데이터 포크 매핑이 갱신되지 않아 발생하는 취약점입니다. 이로 인해 잘못된 물리 블록에 대해 refcount btree를 조회하게 되어 정확하지 않은 공유 상태 값을 반환할 수 있습니다.
💡 쉬운 설명
파일을 저장하는 방식 중 하나인 XFS 시스템에서 데이터 위치 정보를 업데이트하는 과정에 오류가 있습니다. 이 오류로 인해 시스템이 파일의 실제 위치를 잘못 파악하여 데이터 처리 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xfs: resample the data fork mapping after cycling ILOCK
xfs_reflink_fill_{cow_hole,delalloc} are both presented with an inode,
a data fork mapping, and a cow fork mapping. Unfortunately, these two
helpers cycle the ILOCK to grab a transaction, which means that the
mappings are stale as soon as we reacquire the ILOCK. Currently we
refresh the cow fork mapping by re-calling xfs_find_trim_cow_extent, but
we don't refresh the data fork mapping beforehand, which means that the
xfs_bmap_trim_cow in that function queries the refcount btree about the
wrong physical blocks and returns an inaccurate value in *shared.
If *shared is now false, the directio write proceeds with a stale data
fork mapping. Fix this by querying the data fork mapping if the
sequence counter changes across the ILOCK cycle.
📍 영향받는 시스템
Linux kernel (XFS 파일 시스템을 사용하는 버전)
⚔️ 공격 벡터
로컬 공격자가 XFS 파일 시스템의 특정 조작을 통해 잘못된 데이터 매핑을 유도하여 데이터 무결성을 침해할 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.