🇰🇷 한글 설명
Linux 커널의 pNFS 구성 요소에서 pnfs_update_layout() 함수 호출 시 Use-After-Free 취약점이 발견되었습니다. NFS_LAYOUT_RETURN 분기에서 레이아웃 헤더를 해제한 후 tracepoint가 해당 메모리에 접근하여 발생하며, 이를 수정하기 위해 tracepoint 호출 순서를 변경했습니다.
💡 쉬운 설명
컴퓨터가 이미 사용이 끝나서 버린 메모리 공간을 다시 읽으려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 보안 공격에 악용될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
pNFS: Fix use-after-free in pnfs_update_layout()
When hitting the NFS_LAYOUT_RETURN branch in pnfs_update_layout(),
the code calls pnfs_prepare_to_retry_layoutget(lo). If it succeeds,
pnfs_put_layout_hdr(lo) is called before trace_pnfs_update_layout(),
which still references 'lo'. This results in a use-after-free when the
tracepoint accesses lo's fields.
Fix this by moving the tracepoint call before pnfs_put_layout_hdr(lo).
📍 영향받는 시스템
pNFS 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 NFS 레이아웃 응답을 전송하여 커널 메모리 오류 유도
🛡️ 대응 방법
pNFS 관련 보안 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 보안 패치가 적용된 최신 버전인지 확인