🇰🇷 한글 설명
Linux 커널의 lockd 구성 요소에서 nlm_do_fopen() 실패 시 nlm_file 참조 횟수(refcount)가 누수되는 취약점이 발견되었습니다. 이로 인해 파일 참조 횟수가 0으로 돌아가지 않아 nlm_traverse_files()가 해당 파일을 회수하지 못하게 됩니다.
💡 쉬운 설명
파일을 여는 과정에서 오류가 발생했을 때, 시스템이 사용 중인 파일의 카운트를 제대로 줄이지 못하는 문제입니다. 이 문제가 반복되면 시스템 자원이 계속 점유되어 메모리나 리소스가 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure
The cached-file path in nlm_lookup_file() reaches the found: label
unconditionally, even when nlm_do_fopen() fails. At that label
*result and file->f_count are updated before the error is returned.
The wrappers nlm3svc_lookup_file() and nlm4svc_lookup_file() then
bail out of their switch without copying *result back to their
caller, so the proc handler's local nlm_file pointer remains NULL
and the cleanup path skips nlm_release_file(). The f_count
increment is never released, and nlm_traverse_files() can no
longer reap the file because its refcount never returns to zero
between requests.
Short-circuit the cached path so neither *result nor f_count is
touched when nlm_do_fopen() fails on a hashed nlm_file.
📍 영향받는 시스템
Linux Kernel (lockd 구성 요소 포함 버전)
⚔️ 공격 벡터
로컬 또는 네트워크를 통한 NLM(Network Lock Manager) 요청 시 의도적인 파일 오픈 실패 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.