🔍 CVE-2026-64400

8.6
CVSS Score
HIGH
2026-07-25
2026-10-21 13:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ksmbd 모듈에서 경로 탐색(Path Traversal) 우회 취약점이 발견되었습니다. 대소문자 구분 없는 재시도(caseless retry) 로직의 오류로 인해, 공격자가 공유 디렉토리 경계를 벗어나 외부 디렉토리에 파일을 생성할 수 있습니다.

💡 쉬운 설명

공유 폴더를 사용할 때 원래는 허용되지 않은 폴더로 나갈 수 없어야 하지만, 시스템 오류를 이용해 폴더 밖으로 탈출할 수 있는 보안 구멍이 발견되었습니다. 이를 통해 공격자는 공유 폴더 외부의 위치에 몰래 파일을 만들 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent path traversal bypass by restricting caseless retry ksmbd_vfs_path_lookup() enforces LOOKUP_BENEATH to restrict path resolution within the share root. When a crafted path attempts to escape the share boundary using parent-directory components ('..'), vfs_path_parent_lookup() detects this and immediately fails, returning -EXDEV. However, a bug exists in __ksmbd_vfs_kern_path() under caseless mode. The function fails to intercept the -EXDEV error and erroneously falls through to the caseless retry logic, which is intended only for genuinely missing files. During this retry process, the path is reconstructed, leading to an unintended LOOKUP_BENEATH bypass that allows write-capable users to create zero-length files or directories outside the exported share. Fix this by ensuring that the execution only proceeds to the caseless lookup retry when the error is specifically -ENOENT. Any other errors, such as -EXDEV from a path traversal attempt, must be returned immediately.

📍 영향받는 시스템

Linux kernel (ksmbd module 포함 버전)

⚔️ 공격 벡터

조작된 경로('..')를 포함한 요청을 보내 공유 디렉토리 경계를 우회하여 외부 파일 생성

🛡️ 대응 방법

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

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 배포판 보안 공지를 통해 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel