🇰🇷 한글 설명
Linux 커널의 sunrpc 구성 요소에서 __rpc_clnt_handle_event 및 __rpc_clnt_remove_pipedir 함수 호출 시 Use-After-Free 취약점이 발생합니다. 마운트 이벤트 처리 과정에서 pipefs_sb 필드가 적절히 갱신되지 않거나 언마운트 시 초기화되지 않아, 해제된 메모리 주소를 참조하게 되어 시스템 불안정이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터의 네트워크 파일 공유 기능을 관리하는 과정에서, 이미 사용이 끝난 메모리 정보를 계속 붙잡고 있어 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 권한을 가로챌 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sunrpc: fix use-after-free in __rpc_clnt_handle_event and __rpc_clnt_remove_pipedir
Normal client creation goes through rpc_setup_pipedir(), which records
clnt->pipefs_sb, but the mount-event path in __rpc_clnt_handle_event()
calls rpc_setup_pipedir_sb() directly and never refreshes that field.
The umount path also removes the directory without clearing
clnt->pipefs_sb.
After a late pipefs mount or any remount, rpc_clnt_remove_pipedir()
compares the current superblock against a stale pipefs_sb pointer and
skips cleanup, leaving pipefs dentries whose inode private data still
points at a freed rpc_clnt, leading to a potential use-after-free during
subsequent rpc_info_open() or rpc_show_info() calls.
Fix this by properly updating clnt->pipefs_sb upon mount events and
clearing it during unmount or failure paths.
📍 영향받는 시스템
Linux Kernel (sunrpc 모듈을 사용하는 버전)
⚔️ 공격 벡터
특정 마운트/언마운트 이벤트를 유도하여 해제된 메모리 영역에 접근하는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.