🇰🇷 한글 설명
Linux 커널의 CIFS 구현에서 지연된 닫기(deferred close) 작업이 취소될 때, 메모리 할당 실패로 인해 cifsFileInfo 참조와 서버 핸들이 누수되는 취약점이 발견되었습니다. 이로 인해 시스템 메모리가 점진적으로 고갈될 수 있습니다.
💡 쉬운 설명
파일을 닫는 과정에서 메모리가 부족하면, 시스템이 사용하던 자원을 제대로 반환하지 못하고 계속 붙잡고 있게 됩니다. 이 현상이 반복되면 컴퓨터의 메모리가 부족해져 시스템 성능이 떨어지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths
In cifs_close_deferred_file(), cifs_close_all_deferred_files(), and
cifs_close_deferred_file_under_dentry(), when a pending deferred close
is cancelled via cancel_delayed_work(), the subsequent kmalloc_obj() to
add the file to the local processing list may fail under memory pressure.
The loop breaks immediately, but the cancelled work is no longer pending
(it would have called _cifsFileInfo_put()), and the cfile is never added
to file_head for processing. The cifsFileInfo reference and the open
server handle both leak.
Fix by saving the cfile that failed allocation in a local variable,
breaking as before, and calling _cifsFileInfo_put() on it after
releasing the lock. Any files later in the iteration are unaffected
since their deferred work is still pending and will fire normally.
📍 영향받는 시스템
Linux kernel (CIFS module 사용 환경)
⚔️ 공격 벡터
직접적인 공격보다는 메모리 압박 상황을 유도하여 자원 누수를 가속화하는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.