PT-2026-33524 · Unknown+1 · Libgphoto2+1

CVE-2026-40334

·

Published

2026-04-17

·

Updated

2026-07-22

CVSS v3.1

3.5

Low

VectorAV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Name of the Vulnerable Software and Affected Versions libgphoto2 versions prior to 2.5.34
Description A missing null terminator exists in the ptp unpack Canon FE() function within the camlibs/ptp2/ptp-pack.c file. The function uses strncpy to copy a filename into a 13-byte buffer without ensuring the result is null-terminated. If the source data is exactly 13 bytes and lacks a null terminator, the buffer remains unterminated, which can lead to out-of-bounds reads during subsequent string operations.
Recommendations Update to a version later than 2.5.33.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

AZL-83012
CVE-2026-40334
GHSA-PH87-CC3J-C6HM
OESA-2026-2067
OESA-2026-2068
OESA-2026-2069
OESA-2026-2070
OESA-2026-2071
OPENSUSE-SU-2026:10916-1
USN-8586-1

Affected Products

Ubuntu
Libgphoto2