Skip to content
Fencer Vulns
low 3.5

CVE-2026-40341 json

libgphoto2 has an OOB Read in ptp_unpack_EOS_FocusInfoEx

published 2026-04-17 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-23611

cvss
3.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 8%
public exploits
0
none known

Summary

libgphoto2 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.

Patch / fix

  • libgphoto2 Debian 14 2.5.34-1

debian advisories DEBIAN-CVE-2026-40341

  • libgphoto2 Ubuntu 22.04 LTS 2.5.27-1ubuntu0.1
  • libgphoto2 Ubuntu 24.04 LTS 2.5.31-2.1ubuntu1.1
  • libgphoto2 Ubuntu 26.04 LTS 2.5.33-1ubuntu1.1

ubuntu advisories UBUNTU-CVE-2026-40341

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libgphoto2 openSUSE Tumbleweed 2.5.34-1.1

opensuse advisories openSUSE-SU-2026:10916-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-40341 updated cvss 4.6

libgphoto2: libgphoto2: Denial of Service via out-of-bounds read from untrusted USB devices

  • Red Hat Enterprise Linux 6 libgphoto2 Red Hat Enterprise Linux 7 libgphoto2 Red Hat Enterprise Linux 8 libgphoto2 Red Hat Enterprise Linux 9 libgphoto2 Red Hat Enterprise Linux 10 libgphoto2
    affected: workaround, no fix available “Fix deferred”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
6 mo ago

Exploit prediction

0.19% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 3.5 CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Affected products

  • gphoto libgphoto2

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.