🔍 CVE-2026-45698

7.5
CVSS Score
HIGH
2026-08-17
2026-09-09 21:11
✅ 완료

🇰🇷 한글 설명

Netatalk 3.1.19에서 4.4.2 버전 사이의 afpd 데몬 내 deletedir() 함수에서 스택 기반 버퍼 오버플로 취약점이 발견되었습니다. 경로 생성 시 남은 버퍼 크기를 계산하는 과정에서 정수 언더플로가 발생하여, 공격자가 제어하는 파일명이 스택 버퍼에 무제한으로 복사될 수 있습니다.

💡 쉬운 설명

파일을 삭제하는 과정에서 컴퓨터가 계산 실수를 하여, 공격자가 아주 긴 이름을 가진 파일을 보내면 시스템의 메모리를 넘쳐나게 만들 수 있습니다. 이를 통해 해커가 시스템을 조작하거나 멈추게 할 수 있습니다.

🇺🇸 원문 (English)

Netatalk is a Free and Open Source file server suite for Unix-like operating systems. In versions 3.1.19 through 4.4.2, a stack-based buffer overflow exists in the deletedir() function of Netatalk's afpd daemon due to an integer underflow in the calculation of the remaining buffer size used for path construction. deletedir() is a utility function called when a file operation crosses a device boundary inside an AFP shared volume, which the standard library's renameat() cannot handle. The function attempts to prevent buffer overflows by tracking available space in a size_t remain variable. However, the arithmetic used to compute remain results in an unsigned integer underflow, causing the variable to become SIZE_MAX. Because of this, the subsequent boundary check always evaluates as safe, allowing an unbounded strcpy() operation to copy attacker-controlled filenames into a nearly full stack buffer. Version 4.4.3 patches the issue.

📍 영향받는 시스템

Netatalk versions 3.1.19 through 4.4.2

⚔️ 공격 벡터

AFP 공유 볼륨 내에서 장치 경계를 넘나드는 파일 작업을 수행할 때 조작된 파일명을 전송하여 공격

🛡️ 대응 방법

Netatalk 버전을 4.4.3 이상으로 업데이트

🔧 검증 코드

출력된 Netatalk 버전이 3.1.19에서 4.4.2 사이라면 취약한 상태입니다.

Shell / Script
dpkg -l | grep netatalk 2>/dev/null || rpm -qa | grep netatalk 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Netatalk