🇰🇷 한글 설명
Linux 커널의 ceph_mdsc_build_path() 함수에서 에러 경로 시 메모리 누수 발생. __getname()으로 할당된 'path' 포인터가 path_info.path로 호출자에게 전달되지 않으면 함수 반환 전 __putname()으로 해제되지 않아 메모리 누수 초래.
💡 쉬운 설명
Linux 커널의 파일 경로 처리 코드에서 에러가 발생할 때 할당된 메모리가 정리되지 않는 문제입니다. 시간이 지나면서 메모리가 계속 낭비되어 시스템이 느려질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix memory leaks in ceph_mdsc_build_path()
Add __putname() calls to error code paths that did not free the "path"
pointer obtained by __getname(). If ownership of this pointer is not
passed to the caller via path_info.path, the function must free it
before returning.
📍 영향받는 시스템
Linux 커널 (Ceph 파일시스템 탑재된 시스템)
⚔️ 공격 벡터
메모리 누수를 반복적으로 유발하여 시스템 메모리 고갈 및 로컬 서비스 거부 (DoS)
🛡️ 대응 방법
Linux 커널 패치 업데이트 (__putname() 호출 추가된 버전)
🔧 검증 코드
커널 버전과 ceph_mdsc_build_path 함수의 메모리 해제 코드 존재 여부를 확인. 최신 커널 패치가 적용되었으면 __putname 호출이 있어야 함.
uname -r && grep -E 'ceph_mdsc_build_path|__putname' /boot/config-$(uname -r) 2>/dev/null || echo 'Not in current kernel config'