🔍 CVE-2026-68100

8.1
CVSS Score
HIGH
2026-08-10
2026-10-19 21:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ksmbd 구성 요소에서 set_ntacl_dacl 함수가 ACE를 복사할 때 num_subauth 값을 검증하지 않아 발생하는 취약점입니다. 인증된 공격자가 조작된 보안 기술자(SD)를 저장한 후 이를 조회하면, 잘못된 num_subauth 값으로 인해 힙 영역에서 경계 외 읽기(Out-of-bounds read)가 발생할 수 있습니다.

💡 쉬운 설명

인증된 사용자가 조작된 권한 정보를 서버에 저장한 뒤 이를 다시 요청하면, 서버가 잘못된 메모리 범위를 읽어 정보를 유출할 수 있는 문제입니다. 이는 시스템의 민감한 데이터가 공격자에게 노출될 위험을 초래합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate num_subauth when copying ACE in set_ntacl_dacl set_ntacl_dacl() copies each ACE from the attacker-controlled stored security descriptor verbatim into the response DACL without checking sid.num_subauth. The ACE bytes (including an unchecked num_subauth) originate from an authenticated SMB2_SET_INFO(SecInfo=DACL) that is stored raw via ksmbd_vfs_set_sd_xattr(); parse_dacl() rejects a bad ACE with `break` rather than an error, so parse_sec_desc() still returns success and the malformed SD reaches the xattr intact. On a subsequent SMB2_QUERY_INFO(SecInfo=DACL) for an inode carrying a POSIX access ACL, build_sec_desc() -> set_ntacl_dacl() -> set_posix_acl_entries_dacl() walks the copied ACEs and reads ntace->sid.sub_auth[ntace->sid.num_subauth - 1] with num_subauth taken straight from the stored SD. Since sub_auth[] is fixed at SID_MAX_SUB_AUTHORITIES (15), a crafted num_subauth (e.g. 255) drives an out-of-bounds heap read of ~1 KB with an offset fully controlled by an authenticated client. The sibling functions already gate this field: parse_dacl() -- num_subauth == 0 || > SID_MAX_SUB_AUTHORITIES parse_sid() -- num_subauth > SID_MAX_SUB_AUTHORITIES smb_copy_sid() -- min_t(u8, num_subauth, SID_MAX_SUB_AUTHORITIES) set_ntacl_dacl() is the lone inconsistent path that omits the check. Add the same num_subauth validation in set_ntacl_dacl() before copying the ACE, matching the gate already enforced by parse_dacl().

📍 영향받는 시스템

Linux kernel (ksmbd module 사용 환경)

⚔️ 공격 벡터

인증된 클라이언트가 조작된 SMB2_SET_INFO 요청을 통해 악성 보안 기술자를 저장한 후 SMB2_QUERY_INFO로 호출

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 set_ntacl_dacl 함수 내 num_subauth 검증 로직을 적용해야 합니다.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

NVIDIA vGPU Guest Driver for Linux