PT-2026-33530 · Unknown · Libgphoto2

CVE-2026-40336

·

Published

2026-04-17

·

Updated

2026-07-22

CVSS v3.1

6.1

Medium

VectorAV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions libgphoto2 versions prior to 2.5.34
Description A memory leak exists in the ptp unpack Sony DPD() function within camlibs/ptp2/ptp-pack.c. When processing a secondary enumeration list used in 2024+ Sony cameras, the function overwrites the dpd->FORM.Enum.SupportedValue variable with a new allocation without freeing the previous one. This results in the original array and its string values being leaked during every property descriptor parse.
Recommendations Update to version 2.5.34 or later.

Exploit

Fix

Memory Leak

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

Weakness Enumeration

Related Identifiers

AZL-83009
CVE-2026-40336
GHSA-G8XW-P5WJ-MRXV
OESA-2026-2785
OPENSUSE-SU-2026:10916-1
USN-8586-1

Affected Products

Libgphoto2