🇰🇷 한글 설명
Linux 커널의 ksmbd 구성 요소에서 DACL 크기를 계산할 때 u16 변수 오버플로가 발생할 수 있는 취약점입니다. 다수의 POSIX ACL 항목이 있는 경우 누적된 크기가 65535를 초과하여 포인터 연산 오류를 일으키고, 이로 인해 기존 ACL 항목이 덮어씌워지는 메모리 오염이 발생할 수 있습니다.
💡 쉬운 설명
파일의 권한 정보를 저장하는 과정에서 숫자가 너무 커져 계산 오류가 발생하는 문제입니다. 이 오류를 이용하면 파일의 권한 설정 데이터가 엉뚱하게 덮어씌워질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: use check_add_overflow() to prevent u16 DACL size overflow
set_posix_acl_entries_dacl() and set_ntacl_dacl() accumulate ACE sizes
in u16 variables. When a file has many POSIX ACL entries, the
accumulated size can wrap past 65535, causing the pointer arithmetic
(char *)pndace + *size to land within already-written ACEs. Subsequent
writes then overwrite earlier entries, and pndacl->size gets a
truncated value.
Use check_add_overflow() at each accumulation point to detect the
wrap before it corrupts the buffer, consistent with existing
check_mul_overflow() usage elsewhere in smbacl.c.
📍 영향받는 시스템
Linux kernel (ksmbd module 포함 버전)
⚔️ 공격 벡터
조작된 다수의 ACL 항목을 포함한 파일을 통해 ksmbd 서버에 접근하여 메모리 오염 유도
🛡️ 대응 방법
check_add_overflow() 함수가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인