🇰🇷 한글 설명
Linux 커널의 Ceph 구성 요소 내 handle_session() 함수에서 MDSCapAuth 경로 및 fs_name 디코딩 시 경계 검사가 누락된 취약점이 발견되었습니다. 공격자가 조작된 메시지를 보내면 ceph_decode_copy()가 할당된 버퍼 범위를 초과하여 읽게 되어 시스템이 충돌할 수 있습니다.
💡 쉬운 설명
해커가 조작된 데이터를 보내 컴퓨터의 메모리 영역을 허용된 범위보다 더 많이 읽게 만드는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 꺼지는 현상이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ceph: bound MDSCapAuth path and fs_name decode in handle_session()
handle_session() decodes the MDSCapAuth records carried by a
CEPH_SESSION_OPEN message (msg_version >= 6). For each record the
match.path and match.fs_name byte strings are read by first decoding a
32-bit length and then copying that many bytes with the bare
ceph_decode_copy(). Unlike the surrounding fields, which all use the
_safe decode variants, these two copies are not preceded by a
ceph_decode_need() bounds check, and the enclosing MDSCapAuth and
MDSCapMatch struct_len fields are skipped rather than enforced as an
upper bound. A length larger than the bytes remaining in the message
front makes ceph_decode_copy() read past the end of the front buffer.
The message front is a dedicated allocation (ceph_msg_new2() ->
kvmalloc), so the over-read runs off that object. A malicious or
compromised MDS can trigger this with the first post-connect message on
mount, with no client-side user interaction; under KASAN it is reported
as a slab-out-of-bounds read in handle_session().
Impact: a malicious MDS can force the kernel client to read up to 4 GiB
past the message front allocation during session setup, crashing the
client (out-of-bounds read).
Switch both copies to ceph_decode_copy_safe(), which performs the
ceph_decode_need() bounds check before the copy and branches to the
existing bad label, matching the rest of the decoder and the error path
that frees the partially decoded cap_auths array.
📍 영향받는 시스템
Linux kernel (Ceph client module 사용 환경)
⚔️ 공격 벡터
악의적이거나 탈취된 MDS(Metadata Server)가 클라이언트 연결 시 조작된 CEPH_SESSION_OPEN 메시지를 전송
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트하고 ceph_decode_copy_safe() 함수가 적용되었는지 확인
🔧 검증 코드
출력된 커널 버전을 확인하여 취약점이 해결된 최신 패치 버전인지 보안 공지(CVE-2026-89651)와 대조하여 확인