🔍 CVE-2026-40340

6.1
CVSS Score
MEDIUM
2026-04-18
2026-10-26 21:10
✅ 완료

🇰🇷 한글 설명

libgphoto2 라이브러리의 ptp_unpack_OI() 함수에서 경계 외 읽기(Out-of-bounds read) 취약점이 발견되었습니다. 삼성 갤럭시 64비트 객체 크기 감지 로직이 검증된 범위를 초과하여 메모리에 접근함으로써 발생합니다.

💡 쉬운 설명

카메라를 제어하는 프로그램이 데이터를 읽을 때, 정해진 범위를 넘어서는 잘못된 메모리 영역을 읽을 수 있는 오류입니다. 이로 인해 프로그램이 갑자기 종료되거나 시스템 정보가 유출될 위험이 있습니다.

🇺🇸 원문 (English)

libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read vulnerability in `ptp_unpack_OI()` in `camlibs/ptp2/ptp-pack.c` (lines 530–563). The function validates `len < PTP_oi_SequenceNumber` (i.e., len < 48) but subsequently accesses offsets 48–56, up to 9 bytes beyond the validated boundary, via the Samsung Galaxy 64-bit objectsize detection heuristic. Commit 7c7f515bc88c3d0c4098ac965d313518e0ccbe33 fixes the issue.

📍 영향받는 시스템

libgphoto2 2.5.33 및 그 이하 모든 버전

⚔️ 공격 벡터

조작된 PTP(Picture Transfer Protocol) 패킷을 통해 취약한 함수를 호출하여 발생

🛡️ 대응 방법

libgphoto2를 최신 버전(커밋 7c7f515bc88c3d0c4098ac965d313518e0ccbe33이 적용된 버전)으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 2.5.33 이하인지 확인하여 취약 여부를 판단합니다.

Shell / Script
dpkg -l libgphoto2 2>/dev/null | grep -E 'libgphoto2' || rpm -q libgphoto2 2>/dev/null | grep -E 'libgphoto2'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Samsung Galaxy