🔍 CVE-2026-64141

7.5
CVSS Score
HIGH
2026-07-19
2026-08-18 12:39
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ksmbd 모듈에서 세션 종료 시 발생하는 NULL 포인터 역참조 취약점입니다. SESSION_LOGOFF 발생 시 특정 데이터가 리스트에서 완전히 제거되지 않아, 동일한 ClientGuid로 재접속 시 잘못된 메모리 주소에 접근하여 커널 패닉(시스템 중단)을 유발할 수 있습니다.

💡 쉬운 설명

컴퓨터의 파일 공유 기능(ksmbd)에서 사용자가 로그아웃할 때 정보가 제대로 지워지지 않는 문제입니다. 이 상태에서 다시 접속하면 시스템이 혼란을 느껴 컴퓨터가 갑자기 멈추거나 꺼질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference in compare_guid_key() session_fd_check() walks the per-inode m_op_list during durable-handle session teardown and sets op->conn = NULL for every opinfo whose conn matched the closing session's connection. The matching opinfo, however, stays linked in its per-ClientGuid lease_table_list entry's lb->lease_list because destroy_lease_table() only runs on full TCP-connection teardown, not on SESSION_LOGOFF. If the same TCP connection then negotiates a fresh session with the same ClientGuid (ClientGuid is bound to NEGOTIATE, not the session, and is unchanged across LOGOFF + SETUP) and issues a SMB2 CREATE with a lease context on a different inode, find_same_lease_key() walks lb->lease_list, reaches the stale opinfo, and calls compare_guid_key(), which unconditionally dereferences opinfo->conn->ClientGUID. The conn pointer is NULL and the kernel panics. Reproducer requires only a successful SMB2 SESSION_SETUP and a share configured with 'durable handles = yes'. KASAN report on mainline 70390501d194: general protection fault, probably for non-canonical address 0xdffffc0000000069: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000348-0x000000000000034f] Workqueue: ksmbd-io handle_ksmbd_work RIP: 0010:bcmp+0x5b/0x230 Call Trace: compare_guid_key+0x4b/0xd0 find_same_lease_key+0x324/0x690 smb2_open+0x6aea/0x8e60 handle_ksmbd_work+0x796/0xee0 ... Faulting address 0x348 is the offset of ClientGUID within struct ksmbd_conn, confirming opinfo->conn was NULL. Read opinfo->conn once and bail out if it has been cleared by a concurrent session_fd_check(). A half-detached opinfo cannot be the owner of an active lease, so returning 0 is the correct match result.

📍 영향받는 시스템

Linux kernel with ksmbd module enabled (specifically versions prior to the fix)

⚔️ 공격 벡터

SMB2 세션 설정 후 'durable handles'가 활성화된 공유 환경에서 특정 로그오프 및 재접속 시나리오를 통한 DoS(서비스 거부)

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인하십시오.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel