🇰🇷 한글 설명
Linux 커널의 Ceph 구성 요소에서 MDS가 제공하는 이름의 길이를 검증하지 않아 발생하는 버퍼 오버플로우 취약점입니다. 악의적인 MDS가 NAME_MAX보다 긴 이름을 반환할 경우 클라이언트의 NFS 내보내기 경로에서 슬랩(slab) 영역의 경계 외 쓰기가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 파일 이름을 저장할 때 정해진 크기보다 더 긴 이름을 강제로 집어넣어 시스템 메모리를 망가뜨리는 문제입니다. 해킹된 서버가 가짜로 긴 이름을 보내면 사용자의 컴퓨터 시스템이 오작동하거나 공격당할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ceph: bound copied dentry name length in NFS export get_name
ceph_get_name() copies the MDS-supplied name into the caller's
NAME_MAX-sized buffer with memcpy(name, rinfo->dname, rinfo->dname_len)
and then writes name[rinfo->dname_len] = 0, without checking dname_len
against NAME_MAX. A malicious or buggy MDS that returns a LOOKUPNAME reply
with dname_len > NAME_MAX overflows the buffer. __get_snap_name() copies
rde->name / rde->name_len the same unchecked way.
Impact: a malicious or compromised Ceph MDS overflows the NAME_MAX name
buffer in a client's NFS-export get_name path, a slab out-of-bounds write
reported by KASAN. Reachable when a CephFS mount is re-exported over NFS.
Add ceph_export_copy_name(), which rejects lengths above NAME_MAX with
-ENAMETOOLONG before the copy, and use it in both ceph_get_name() and
__get_snap_name().
📍 영향받는 시스템
CephFS를 NFS로 재공유(re-export)하여 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
조작되거나 침해된 Ceph MDS가 LOOKUPNAME 응답 시 NAME_MAX를 초과하는 dname_len을 전송하여 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 ceph_export_copy_name() 함수가 적용된 상태로 유지
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 배포판 보안 공지를 통해 대조