🇰🇷 한글 설명
리눅스 커널의 netfs 구성 요소에서 netfs_unlock_abandoned_read_pages() 함수 호출 시 발생할 수 있는 Use-After-Free(UAF) 취약점이 발견되었습니다. 특정 조건에서 페이지 인덱스를 참조하는 방식의 오류로 인해 이미 해제된 메모리에 접근할 위험이 있어, 포인터를 직접 저장하는 방식으로 수정되었습니다.
💡 쉬운 설명
컴퓨터 메모리 관리 과정에서 이미 사용이 끝난 메모리 공간을 다시 사용하려고 시도할 때 발생하는 오류입니다. 이 오류를 이용하면 해커가 시스템을 제어하거나 강제로 종료시킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()
netfs_unlock_abandoned_read_pages(rreq) accesses the index of the folios it
is wanting to unlock and compares that to rreq->no_unlock_folio so that it
doesn't unlock a folio being read for netfs_perform_write() or
netfs_write_begin().
However, given that netfs_unlock_abandoned_read_pages() is called _after_
NETFS_RREQ_IN_PROGRESS is cleared, the one folio that it's not allowed to
dereference is the one specified by ->no_unlock_folio as ownership
immediately reverts to the caller.
Fix this by storing the folio pointer instead and using that rather than
the index. Also fix netfs_unlock_read_folio() where the same applies.
📍 영향받는 시스템
netfs 모듈을 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
특정 네트워크 파일 시스템 요청 처리 과정에서 메모리 해제 후 재참조를 유도하는 방식
🛡️ 대응 방법
netfs 관련 패치가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.