🇰🇷 한글 설명
Linux 커널의 nfsd 구성 요소에서 서로 다른 시간 도메인(CLOCK_REALTIME과 CLOCK_BOOTTIME)을 비교하는 논리적 오류가 발견되었습니다. 이로 인해 클라이언트의 재요청 기간(grace period) 계산이 항상 거짓으로 판정되어, 공격자가 서버의 자원을 무한정 점유할 수 있습니다.
💡 쉬운 설명
서로 맞지 않는 두 종류의 시계를 비교하는 바람에, 서버가 특정 작업의 종료 시간을 제대로 계산하지 못하는 문제입니다. 이를 악용하면 공격자가 서버를 계속 붙잡아 두어 다른 사용자들이 서비스를 이용하지 못하게 방해할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nfsd: fix clock domain mismatch in clients_still_reclaiming()
clients_still_reclaiming() computes a deadline from nn->boot_time
(CLOCK_REALTIME, ~1.7 billion) but compares it against
ktime_get_boottime_seconds() (CLOCK_BOOTTIME, seconds since boot).
The comparison is always false — it would take ~54 years of uptime
for BOOTTIME to exceed the REALTIME-derived deadline.
This means any client can hold the server in grace indefinitely by
sending CLAIM_PREVIOUS OPEN requests, blocking all non-reclaim
operations for all other clients.
Add boot_time_bt (CLOCK_BOOTTIME) alongside the existing boot_time
and use it for the deadline computation. boot_time (CLOCK_REALTIME)
is preserved for its cl_boot clientid-nonce role.
📍 영향받는 시스템
Linux Kernel (nfsd 모듈을 사용하는 시스템)
⚔️ 공격 벡터
공격자가 특수하게 조작된 CLAIM_PREVIOUS OPEN 요청을 지속적으로 전송하여 서버의 grace period를 무한히 유지함
🛡️ 대응 방법
nfsd의 clients_still_reclaiming() 함수에서 CLOCK_BOOTTIME을 사용하도록 커널을 최신 보안 패치 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인