🔍 CVE-2023-4091

6.5
CVSS Score
MEDIUM
2023-11-03
2026-06-17 06:37
✅ 완료

🇰🇷 한글 설명

Samba의 VFS 모듈 'acl_xattr' 설정에서 'acl_xattr:ignore system acls = yes'가 활성화된 경우, 읽기 전용 권한을 가진 클라이언트가 파일을 0바이트로 잘라낼 수 있는 취약점이 발견되었습니다. 이는 SMB 프로토콜의 파일 열기 요청 시 OVERWRITE 생성 처분 방식을 악용하여 커널 파일 시스템 권한 검사를 우회하는 방식입니다.

💡 쉬운 설명

파일을 읽기만 할 수 있는 권한을 가진 사용자가 파일을 강제로 비워버릴 수 있는 보안 결함입니다. 특정 설정이 켜져 있을 때 파일의 내용을 모두 지워버리는 공격이 가능합니다.

🇺🇸 원문 (English)

A vulnerability was discovered in Samba, where the flaw allows SMB clients to truncate files, even with read-only permissions when the Samba VFS module "acl_xattr" is configured with "acl_xattr:ignore system acls = yes". The SMB protocol allows opening files when the client requests read-only access but then implicitly truncates the opened file to 0 bytes if the client specifies a separate OVERWRITE create disposition request. The issue arises in configurations that bypass kernel file system permissions checks, relying solely on Samba's permissions.

📍 영향받는 시스템

Samba (VFS module 'acl_xattr'에서 'acl_xattr:ignore system acls = yes' 설정이 활성화된 경우)

⚔️ 공격 벡터

SMB 프로토콜의 OVERWRITE 생성 요청을 사용하여 읽기 전용 권한을 우회하고 파일을 0바이트로 덮어씀

🛡️ 대응 방법

Samba를 최신 버전으로 업데이트하거나, VFS 모듈 설정에서 'acl_xattr:ignore system acls' 옵션을 'no'로 변경하여 커널 권한 검사를 활성화함

🔧 검증 코드

출력된 Samba 버전을 확인하여 취약점이 해결된 최신 패치 버전인지 확인합니다.

Shell / Script
smbd -V 2>/dev/null || samba --version 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Samba