CVE-2026-40336

libgphoto2: libgphoto2 is a camera access and control library

CVE-2026-40336 is fixed in 4 products on 1 platform, first by libgphoto2-6t64 2.5.33-1ubuntu1.1, released April 17, 2026. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
2.4
low
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0018
7th percentile

libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have a memory leak in `ptp_unpack_Sony_DPD()` in `camlibs/ptp2/ptp-pack.c` (lines 884–885). When processing a secondary enumeration list (introduced in 2024+ Sony cameras), the function overwrites dpd->FORM.Enum.SupportedValue with a new calloc() without freeing the previous allocation from line 857. The original array and any string values it contains are leaked on every property descriptor parse. Commit 404ff02c75f3cb280196fc260a63c4d26cf1a8f6 fixes the issue.

Where it's fixed

ProductFixed inFixReleased
Linux
libgphoto2 · Debian 14 2.5.34-1 DEBIAN-CVE-2026-40336 Apr 18, 2026
libgphoto2-6t64 · Ubuntu 26.04.1 LTS (resolute) 2.5.33-1ubuntu1.1 libgphoto2-6t64 2.5.33-1ubuntu1.1 Apr 17, 2026
libgphoto2-l10n · Ubuntu 26.04.1 LTS (resolute) 2.5.33-1ubuntu1.1 libgphoto2-l10n 2.5.33-1ubuntu1.1 Apr 17, 2026
libgphoto2-port12t64 · Ubuntu 26.04.1 LTS (resolute) 2.5.33-1ubuntu1.1 libgphoto2-port12t64 2.5.33-1ubuntu1.1 Apr 17, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.