A vulnerability was found in gphoto libgphoto2 up to 2.5.33. It has been declared as problematic. This affects the function
ptp_unpack_Sony_DPD of the file camlibs/ptp2/ptp-pack.c. Executing a manipulation can lead to memory leak.
This vulnerability appears as CVE-2026-40336. The physical device can be targeted for the attack. There is no available exploit.
Applying a patch is advised to resolve this issue.