PT-2026-33524 · Unknown · Libgphoto2
Published
2026-04-17
·
Updated
2026-04-25
·
CVE-2026-40334
CVSS v3.1
3.5
Low
| Vector | AV: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
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Libgphoto2