libgphoto2-6: libgphoto2 is a camera access and control library
CVE-2026-40334 is fixed in 6 products on 1 platform, first by libgphoto2-6 2.5.27-1ubuntu0.1, released April 17, 2026. It is not reported as exploited. Patch Radar priority: Routine.
libgphoto2 is a camera access and control library. In versions up to and including 2.5.33, a missing null terminator exists in ptp_unpack_Canon_FE() in camlibs/ptp2/ptp-pack.c (line 1377). The function copies a filename into a 13-byte buffer using strncpy without explicitly null-terminating the result. If the source data is exactly 13 bytes with no null terminator, the buffer is left unterminated, leading to out-of-bounds reads in any subsequent string operation. Commit 259fc7d3bfe534ce4b114c464f55b448670ab873 patches the issue.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| libgphoto2 · Debian 14 | 2.5.34-1 | DEBIAN-CVE-2026-40334 | Apr 18, 2026 |
| libgphoto2-6 · Ubuntu 22.04.1 LTS (jammy) | 2.5.27-1ubuntu0.1 | libgphoto2-6 2.5.27-1ubuntu0.1 | Apr 17, 2026 |
| libgphoto2-6t64 · Ubuntu 24.04.5 LTS (noble) | 2.5.31-2.1ubuntu1.1 | libgphoto2-6t64 2.5.31-2.1ubuntu1.1 | Apr 17, 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 22.04.1 LTS (jammy) | 2.5.27-1ubuntu0.1 | libgphoto2-l10n 2.5.27-1ubuntu0.1 | Apr 17, 2026 |
| libgphoto2-l10n · Ubuntu 24.04.5 LTS (noble) | 2.5.31-2.1ubuntu1.1 | libgphoto2-l10n 2.5.31-2.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-port12 · Ubuntu 22.04.1 LTS (jammy) | 2.5.27-1ubuntu0.1 | libgphoto2-port12 2.5.27-1ubuntu0.1 | Apr 17, 2026 |
| libgphoto2-port12t64 · Ubuntu 24.04.5 LTS (noble) | 2.5.31-2.1ubuntu1.1 | libgphoto2-port12t64 2.5.31-2.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.