CVE Database›Document archive›CVE-2026-40333

CVE-2026-40333

libgphoto2: libgphoto2: Information disclosure and denial of service via unbounded reads

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 used for camera access and control. Two functions within the library's Picture Transfer Protocol (PTP) handling component do not properly validate the size of data being read, allowing for unbounded reads. A local attacker with physical access to a system utilizing libgphoto2 could exploit this vulnerability. This could lead to the disclosure of sensitive information from memory or cause the application to crash, resulting in 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 vulnerability, restrict physical access to systems running libgphoto2. If camera access and control via libgphoto2 is not required, consider removing the libgphoto2 package to eliminate the attack surface.

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-130 · Improper Handling of Length Parameter Inconsistency