CVE Database›Document archive›CVE-2026-40338

CVE-2026-40338

libgphoto2: libgphoto2: Information disclosure and denial of service via out-of-bounds read

Loading…

Severity

Moderate

Red Hat Product Security

6.1

CVSS 3.1

Review impact separately from score.

Published · April 18, 2026

Updated · July 3, 2026

Description

A flaw was found in libgphoto2, a library for camera access and control. An out-of-bounds read vulnerability exists in the ptp_unpack_Sony_DPD() function. This occurs when the function attempts to read a 2-byte enumeration count without first verifying that sufficient data remains in the buffer. A local attacker or a malicious device connected to the system could exploit this to potentially disclose sensitive information from memory or cause a denial of service.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, restrict physical access to systems running libgphoto2 and avoid connecting untrusted or malicious devices. This operational control limits the attack surface by preventing the necessary physical interaction or device connection required for exploitation.

CVSS / CWE

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

CWE-125 · Out-of-bounds Read