🇰🇷 한글 설명
Linux 커널의 Ceph MDS 세션 처리 과정에서 발생하는 Use-After-Free 취약점입니다. 세션 재오픈 시 뮤텍스(mutex)를 보유하지 않은 상태에서 배열을 탐색하여, 메모리가 해제된 후에도 해당 영역에 접근을 시도함으로써 커널 패닉을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 사용 중인 데이터를 갑자기 삭제해버려서, 삭제된 데이터를 다시 읽으려다 시스템이 멈추거나 오류가 발생하는 문제입니다. 이로 인해 서버의 운영체제가 갑자기 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ceph: lock mutex in ceph_mds_check_access()
MDS session OPEN handling replaces mdsc->s_cap_auths under
mdsc->mutex, freeing the previous array and its strings.
ceph_mds_check_access() traverses this array without holding the
mutex. A concurrent session reopen can therefore free the array while
it is being inspected, resulting in a use-after-free like this:
Unable to handle kernel paging request at virtual address 003aaad64b2c8bb9
[...]
Internal error: Oops: 0000000096000004 [#1] SMP
Modules linked in:
CPU: 56 UID: 2953037534 PID: 1253231 Comm: php-cgi8.4 Not tainted 6.18.45-i2-ampere #1146 NONE
[..]
pc : ceph_mds_check_access+0xd4/0x550
lr : ceph_mds_check_access+0xc8/0x550
[...]
Call trace:
ceph_mds_check_access+0xd4/0x550 (P)
ceph_atomic_open+0x138/0xbe8
path_openat+0xa24/0xfa8
do_filp_open+0x94/0x158
do_sys_openat2+0x88/0xf8
📍 영향받는 시스템
Linux kernel (Ceph MDS 관련 모듈이 포함된 버전)
⚔️ 공격 벡터
특수하게 조작된 Ceph 세션 재오픈 요청을 통해 커널 메모리 오류 유도
🛡️ 대응 방법
Ceph MDS 관련 패치가 적용된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전인지 배포판 보안 공지를 통해 확인