🔍 CVE-2026-52996

5.5
CVSS Score
MEDIUM
2026-06-24
2026-07-15 13:04
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ksmbd 모듈에서 ClientGUID가 일치하지 않는 durable v2 open 요청 시 파일 디스크립터 참조 카운트가 해제되지 않는 취약점이 발견되었습니다. 이로 인해 글로벌 파일 테이블의 항목이 해제되지 않고 누적되어 시스템 자원 누수가 발생할 수 있습니다.

💡 쉬운 설명

서버에 연결할 때 사용하는 식별 정보가 맞지 않으면 시스템이 파일을 제대로 닫지 못하고 계속 붙잡고 있게 됩니다. 이런 일이 반복되면 컴퓨터의 메모리나 자원이 바닥나서 시스템 성능이 떨어지거나 멈출 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix durable fd leak on ClientGUID mismatch in durable v2 open ksmbd_lookup_fd_cguid() returns a ksmbd_file with its refcount incremented via ksmbd_fp_get(). parse_durable_handle_context() in the DURABLE_REQ_V2 case properly releases this reference on every path inside the ClientGUID-match branch, either by calling ksmbd_put_durable_fd() or by transferring ownership to dh_info->fp for a successful reconnect. However, when an entry exists in the global file table with the same CreateGuid but a different ClientGUID, the code simply falls through to the new-open path without dropping the reference obtained from ksmbd_lookup_fd_cguid(). Per MS-SMB2 section 3.3.5.9.10 ("Handling the SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2 Create Context"), the server MUST locate an Open whose Open.CreateGuid matches the request's CreateGuid AND whose Open.ClientGuid matches the ClientGuid of the connection that received the request. If no such Open is found, the server MUST continue with the normal open execution phase. A CreateGuid hit with a ClientGUID mismatch is therefore the "Open not found" case: proceeding with a new open is correct, but the reference obtained purely as a side effect of the lookup must not be leaked. Repeated requests that hit this mismatch pin global_ft entries, prevent __ksmbd_close_fd() from ever running for the corresponding files, and defeat the durable scavenger, leading to long-lived resource leaks. Release the reference in the mismatch path and clear dh_info->fp so subsequent logic does not mistake a non-matching lookup result for a reconnect target.

📍 영향받는 시스템

ksmbd 모듈을 사용하는 Linux 커널 버전

⚔️ 공격 벡터

ClientGUID를 의도적으로 다르게 설정한 SMB2 DURABLE_REQ_V2 요청을 반복적으로 전송

🛡️ 대응 방법

ksmbd의 ClientGUID 불일치 경로에서 참조 카운트를 해제하도록 수정된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel