CVE-2026-40341

NameCVE-2026-40341
Descriptionlibgphoto2 is a camera access and control library. In versions up to and including 2.5.33, an out of bound read in ptp_unpack_EOS_FocusInfoEx could be used to crash libgphoto2 when processing input from untrusted USB devices. Commit c385b34af260595dfbb5f9329526be5158985987 contains a patch. No known workarounds are available.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libgphoto2 (PTS)bullseye2.5.27-1vulnerable
bookworm2.5.30-1vulnerable
trixie2.5.31-4vulnerable
forky, sid2.5.33-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libgphoto2source(unstable)(unfixed)

Notes

https://github.com/gphoto/libgphoto2/security/advisories/GHSA-vjx3-gjp6-r2g2
Fixed by: https://github.com/gphoto/libgphoto2/commit/c385b34af260595dfbb5f9329526be5158985987

Search for package or bug name: Reporting problems