🇰🇷 한글 설명
Linux 커널의 NFSD 구성 요소에서 클라이언트 해제 시 락 소유자(lock owner)에 대한 Use-After-Free 취약점이 발견되었습니다. 클라이언트 제거 과정에서 참조 카운트가 없는 락 소유자가 해시 테이블에 남아 있어, 메모리 해제 후 해당 메모리에 접근할 때 NULL 역참조가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 시스템이 사용이 끝난 데이터를 지우는 과정에서, 이미 지워진 데이터를 다시 사용하려고 시도하여 시스템이 충돌하거나 오류가 발생하는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Prevent lock owner use-after-free during client teardown
__destroy_client() releases a client's open owners, but a lock owner
whose only reference is a blocked lock (nbl) stays on
cl_ownerstr_hashtbl. client_has_state() does not count a bare owner,
so DESTROY_CLIENTID can reach __destroy_client() with such owners
present.
__destroy_client() then walks the table, calling remove_blocked_locks()
on each owner without a reference. Freeing a blocked lock drops the
owner reference held via flc_owner. The per-net laundromat reaps
blocked locks from nn->blocked_locks_lru independently of client state.
The two paths share blocked_locks_lock only for the list splice, not
the owner's lifetime. The laundromat therefore frees the owner as
__destroy_client() dereferences it, a NULL dereference in
remove_blocked_locks().
nfsd4_release_lockowner() holds a reference across the same call;
__destroy_client() does not. Hold cl_lock across the walk, taking a
reference and unhashing each owner, then drop it before
remove_blocked_locks() and nfs4_put_stateowner(), which take
blocked_locks_lock and cl_lock.
📍 영향받는 시스템
Linux Kernel (NFSD 기능이 활성화된 버전)
⚔️ 공격 벡터
조작된 NFS 클라이언트 상태를 통해 클라이언트 해제 프로세스를 유도하여 메모리 오류 유발
🛡️ 대응 방법
NFSD의 클라이언트 해제 로직이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인합니다.