PT-2026-33524 · Unknown · Libgphoto2

Published

2026-04-17

·

Updated

2026-04-25

·

CVE-2026-40334

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.

Fix

Weakness Enumeration

Related Identifiers

CVE-2026-40334
OESA-2026-2067
OESA-2026-2068
OESA-2026-2069
OESA-2026-2070
OESA-2026-2071

Affected Products

Libgphoto2