🇰🇷 한글 설명
Linux 커널의 FUSE 모듈에서 fuse_try_move_folio() 함수가 성공 경로에서 요청을 다시 잠그지 않아 발생하는 취약점입니다. 이로 인해 fuse_chan_abort()가 실행되어 fuse_io_args가 해제된 후에도 해당 메모리에 접근을 시도하는 Use-After-Free(UAF) 문제가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 파일 시스템 관리 기능 중 하나에서 메모리 사용 순서가 잘못되어 발생하는 오류입니다. 공격자가 이를 악용하면 이미 삭제된 메모리 영역에 접근하여 시스템을 중단시키거나 보안을 위협할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fuse: re-lock request before replacing page cache folio
fuse_try_move_folio() unlocks the request on entry but does not
re-lock it on the success path. This means fuse_chan_abort() can end the
request and free the fuse_io_args (eg fuse_readpages_end()) while the
subsequent copy chain logic after fuse_try_move_folio() accesses the
fuse_io_args, leading to use-after-free issues.
Fix this by calling lock_request() before replace_page_cache_folio().
This ensures the request is locked on the success path which will
prevent the fuse_io_args from being freed while the later copying logic
runs, and also ensures that the ap->folios[i]->mapping is never null
since ap->folios[i] will always point to the newfolio after
replace_page_cache_folio().
📍 영향받는 시스템
Linux Kernel (FUSE 모듈 사용 시스템)
⚔️ 공격 벡터
특수하게 조작된 FUSE 요청을 통해 메모리 해제 후 접근(Use-After-Free) 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전 이상인지 확인합니다.