🇰🇷 한글 설명
리눅스 커널의 NFSD에서 내보내기 상태 취소 중 클라이언트 사용 후 해제(Use-After-Free) 취약점이 발견되었습니다. 관리자가 export를 제거하는 과정에서 클라이언트 만료 프로세스와 경합이 발생할 경우, 이미 해제된 클라이언트 메모리에 접근하여 시스템 불안정이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터가 사용 중인 데이터를 삭제한 후에도 해당 데이터가 남아있다고 착각하여 접근하려 할 때 발생하는 오류입니다. 관리자가 공유 폴더 설정을 변경할 때 해커가 이를 이용해 시스템을 공격할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Prevent client use-after-free during export state revocation
nfsd4_revoke_export_states() has the same use-after-free as
nfsd4_revoke_states(): it drops nn->client_lock across
revoke_one_stid() and the following read of clp->cl_minorversion, but
the stateid reference it holds does not pin the client. A teardown
racing the dropped lock can free the client while revoke_one_stid()
still dereferences it.
exportfs -u drives this path through NFSD_CMD_UNLOCK_EXPORT, so an
administrator removing an export can race a client expiry.
Skip a client that is already expiring and otherwise pin it with
cl_rpc_users under client_lock before dropping the lock, matching
nfsd4_revoke_states().
📍 영향받는 시스템
Linux Kernel (NFSD 관련 모듈이 포함된 버전)
⚔️ 공격 벡터
관리자가 export를 제거하는 시점에 클라이언트 만료 프로세스와의 경합(Race Condition)을 유도하여 발생
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 클라이언트 참조(pinning) 로직을 수정해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인