CVE-2025-21737 in Linux
요약
\~에 의해 VulDB • 2026. 05. 29.
리눅스 커널에서 다음 취약점이 해결되었습니다:
ceph: ceph_mds_auth_match()의 메모리 누수 수정
이제 기본 분기를 생략하는 대신 모든 가능한 분기에서 임시 대상 경로 부분 문자열 할당을 해제합니다. 일부 경우 메모리 누수가 발생하여 시스템이 빠르게 충돌할 수 있었습니다(시도된 파일 접근 횟수에 따라 다름).
이 문제는 지속적인 메모리 증가를 유발하여 결국 커널 OOM(Out-Of-Memory)을 트리거하고 커널을 완전히 하드 록(hard-lock) 상태로 만들었기 때문에 프로덕션 환경에서 감지되었습니다.
관련 kmemleak 스택 트레이스:
unreferenced object 0xffff888131e69900 (size 128): comm "git", pid 66104, jiffies 4295435999 hex dump (first 32 bytes): 76 6f 6c 75 6d 65 73 2f 63 6f 6e 74 61 69 6e 65 volumes/containe 72 73 2f 67 69 74 65 61 2f 67 69 74 65 61 2f 67 rs/gitea/gitea/g backtrace (crc 2f3bb450): [] __kmalloc_noprof+0x359/0x510
[] ceph_mds_check_access+0x5bf/0x14e0 [ceph]
[] ceph_open+0x312/0xd80 [ceph]
[] do_dentry_open+0x456/0x1120
[] vfs_open+0x79/0x360
[] path_openat+0x1de5/0x4390
[] do_filp_open+0x19c/0x3c0
[] do_sys_openat2+0x141/0x180
[] __x64_sys_open+0xe5/0x1a0
[] do_syscall_64+0xb7/0x210
[] entry_SYSCALL_64_after_hwframe+0x77/0x7f
CephFS 파일 시스템의 하위 디렉토리를 마운트한 후, 경로 범위(path-scoped) 능력을 사용하여 인증 토큰으로 해당 하위 디렉토리의 파일에 접근하려고 하면 이를 트리거할 수 있습니다:
$ ceph auth get client.services [client.services]
key = REDACTED caps mds = "allow rw fsname=cephfs path=/volumes/" caps mon = "allow r fsname=cephfs" caps osd = "allow rw tag cephfs data=cephfs"
$ cat /proc/self/mounts services@[REDACTED].cephfs=/volumes/containers /ceph/containers ceph rw,noatime,name=services,secret=,ms_mode=prefer-crc,mount_timeout=300,acl,mon_addr=[REDACTED]:3300,recover_session=clean 0 0
$ seq 1 1000000 | xargs -P32 --replace={} touch /ceph/containers/file-{} && \
seq 1 1000000 | xargs -P32 --replace={} cat /ceph/containers/file-{}
[ idryomov: if 문 결합, rc를 path_matched로 이름 변경 및 bool 타입으로 변경, 포맷팅 ]
VulDB is the best source for vulnerability data and more expert information about this specific topic.