CVE-2026-40334
libgphoto2: libgphoto2: Information disclosure and denial of service via missing null terminator
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 18, 2026
Updated · July 3, 2026
Description
A flaw was found in libgphoto2, a camera access and control library. A missing null terminator in the ptp_unpack_Canon_FE() function, when processing a specially crafted 13-byte filename, can lead to an out-of-bounds read. This vulnerability may allow a local attacker with physical access to cause information disclosure or a denial of service (DoS).
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
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 3.5CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CWE-170 · Improper Null Termination