🇰🇷 한글 설명
리눅스 커널의 NFS 구성 요소에서 기존 쓰기 작업을 업데이트할 때 레이스 컨디션(경쟁 상태)이 발생할 수 있는 취약점이 발견되었습니다. nfs_lock_and_join_requests() 함수에서 페이지 그룹 잠금을 충분히 일찍 획득하지 않아, 요청이 제거되는 동안 데이터 무결성이 깨질 위험이 있습니다.
💡 쉬운 설명
파일을 네트워크를 통해 저장할 때, 여러 작업이 동시에 같은 부분을 수정하려고 시도하면서 데이터가 꼬일 수 있는 문제입니다. 이로 인해 파일 내용이 잘못 저장되거나 시스템 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
NFS: Fix a race when updating an existing write
After nfs_lock_and_join_requests() tests for whether the request is
still attached to the mapping, nothing prevents a call to
nfs_inode_remove_request() from succeeding until we actually lock the
page group.
The reason is that whoever called nfs_inode_remove_request() doesn't
necessarily have a lock on the page group head.
So in order to avoid races, let's take the page group lock earlier in
nfs_lock_and_join_requests(), and hold it across the removal of the
request in nfs_inode_remove_request().
📍 영향받는 시스템
NFS(Network File System)를 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
로컬 또는 네트워크를 통해 특정 타이밍에 정교하게 조작된 NFS 쓰기 요청을 전송하여 레이스 컨디션 유도
🛡️ 대응 방법
NFS 관련 패치가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 보안 패치 버전 이상인지 확인