🇰🇷 한글 설명
Linux 커널의 ksmbd 구성 요소에서 DACL 크기 계산 시 언더플로우가 발생하는 취약점입니다. 공격자가 조작된 보안 기술자를 전송하면 ACE 개수 검증을 우회하여 대규모 메모리 할당을 유도할 수 있습니다.
💡 쉬운 설명
컴퓨터가 보안 설정을 읽을 때 계산 실수로 인해 아주 큰 숫자를 처리하게 만드는 버그입니다. 이를 통해 공격자가 시스템의 메모리를 과도하게 사용하게 만들어 컴퓨터를 멈추게 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: reject undersized DACLs before parsing ACEs
parse_dacl() limits the attacker-controlled ACE count by comparing it
with the number of minimal ACEs that fit in the DACL size. The DACL size
field is 16 bits, but the expression subtracts sizeof(struct smb_acl).
Because sizeof() is unsigned, a DACL size smaller than the ACL header
underflows to a large size_t.
A malicious client can reach this with:
SMB2_SET_INFO (InfoType=SMB2_O_INFO_SECURITY)
-> smb2_set_info_sec()
-> set_info_sec()
-> parse_sec_desc()
-> parse_dacl()
-> init_acl_state(..., 0xffff)
-> init_acl_state(..., 0xffff)
-> kmalloc_objs(..., 0xffff)
Thus a malformed security descriptor can make num_aces pass the guard
and drive large temporary ACL state and pointer-array allocations.
Reject DACLs smaller than struct smb_acl before doing the subtraction,
so the ACE count check cannot be bypassed by the underflow.
📍 영향받는 시스템
Linux kernel (ksmbd module 포함 버전)
⚔️ 공격 벡터
악의적인 클라이언트가 SMB2_SET_INFO 요청을 통해 조작된 보안 기술자(Security Descriptor)를 전송
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 DACL 크기 검증 로직을 수정해야 함
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 배포판 보안 공지를 통해 확인하십시오.