🇰🇷 한글 설명
Samba의 vfs_fruit 모듈이 확장 파일 속성(EA, xattr)을 처리하는 과정에서 힙 기반의 경계 외 읽기 및 쓰기 취약점이 발생합니다. 공격자가 특수하게 조작된 확장 파일 속성을 통해 smbd 권한(일반적으로 root)으로 임의 코드를 실행할 수 있습니다.
💡 쉬운 설명
애플 기기와의 호환성을 높여주는 Samba 기능의 허점을 이용한 공격입니다. 해커가 조작된 파일 정보를 보내면 서버의 관리자 권한을 통째로 탈취할 수 있습니다.
🇺🇸 원문 (English)
The Samba vfs_fruit module uses extended file attributes (EA, xattr) to provide "...enhanced compatibility with Apple SMB clients and interoperability with a Netatalk 3 AFP fileserver." Samba versions prior to 4.13.17, 4.14.12 and 4.15.5 with vfs_fruit configured allow out-of-bounds heap read and write via specially crafted extended file attributes. A remote attacker with write access to extended file attributes can execute arbitrary code with the privileges of smbd, typically root.
📍 영향받는 시스템
Samba versions prior to 4.13.17, 4.14.12, and 4.15.5 (with vfs_fruit configured)
⚔️ 공격 벡터
확장 파일 속성(EA, xattr)에 대한 쓰기 권한을 가진 원격 공격자가 조작된 속성을 전송
🛡️ 대응 방법
Samba를 최신 보안 패치 버전(4.13.17, 4.14.12, 4.15.5 이상)으로 업데이트
🔧 검증 코드
출력된 Samba 버전을 확인하여 취약한 버전 범위(4.13.17, 4.14.12, 4.15.5 미만)에 해당하는지 대조
smbd --version 2>/dev/null || rpm -q samba || dpkg -l samba 2>/dev/null | grep -E 'samba'