🔍 CVE-2026-31709

8.8
CVSS Score
HIGH
2026-05-01
2026-10-19 20:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 SMB 클라이언트에서 DACL(접근 제어 목록) 검증이 불완전하여, 악의적인 SMB 서버가 잘못된 DACL을 제공하면 메모리 경계를 벗어난 읽기/쓰기 접근이 발생할 수 있다. 권한 정보를 다시 구성하는 과정에서 ACE(접근 제어 항목) 개수를 신뢰하고 경계 검사를 하지 않아 발생하는 취약점이다.

💡 쉬운 설명

Linux가 Windows 파일 공유(SMB) 서버와 통신할 때, 서버에서 받은 권한 정보를 제대로 검증하지 않는다. 악의적인 서버가 위조된 권한 정보를 보내면 시스템 메모리에 부당하게 접근할 수 있다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: smb: client: validate the whole DACL before rewriting it in cifsacl build_sec_desc() and id_mode_to_cifs_acl() derive a DACL pointer from a server-supplied dacloffset and then use the incoming ACL to rebuild the chmod/chown security descriptor. The original fix only checked that the struct smb_acl header fits before reading dacl_ptr->size or dacl_ptr->num_aces. That avoids the immediate header-field OOB read, but the rewrite helpers still walk ACEs based on pdacl->num_aces with no structural validation of the incoming DACL body. A malicious server can return a truncated DACL that still contains a header, claims one or more ACEs, and then drive replace_sids_and_copy_aces() or set_chmod_dacl() past the validated extent while they compare or copy attacker-controlled ACEs. Factor the DACL structural checks into validate_dacl(), extend them to validate each ACE against the DACL bounds, and use the shared validator before the chmod/chown rebuild paths. parse_dacl() reuses the same validator so the read-side parser and write-side rewrite paths agree on what constitutes a well-formed incoming DACL.

📍 영향받는 시스템

Linux kernel with SMB client (cifs/smb2) - 일반적으로 6.1.x 이상의 최신 커널

⚔️ 공격 벡터

악의적인 SMB 서버가 truncated DACL 구조를 반환하여 ACE 개수를 초과하는 메모리 접근 유도

🛡️ 대응 방법

커널 패치 적용 (validate_dacl() 함수 추가로 전체 DACL 구조 검증)

🔧 검증 코드

validate_dacl 함수가 커널 모듈에 포함되어 있으면 패치됨. 함수가 없고 커널 버전이 6.0 이상이면 취약할 가능성 높음.

Shell / Script
grep -r 'validate_dacl' /lib/modules/$(uname -r) 2>/dev/null || uname -r | grep -E '^(6\.[0-9]|[0-5]\.)' && echo 'Potentially vulnerable'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel