Approved changes feed: RSS · Atom

cpe:2.3:a:gphoto:libgphoto2:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorGphoto (60dbfb3a-5693-5c5f-8e04-3483152a96eb)
ProductLibgphoto2 (667d1605-efce-5ff0-aab5-4b6a2955af66)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*

Notes

Imported from gcve-enriched-dumps CVE data

PURL mappings

PURLSourceLast updated
No PURL mappings for this CPE yet.

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-40341 vulnerable 2026-06-08 08:01:20.192250 libgphoto2 has an OOB Read in ptp_unpack_EOS_FocusInfoEx
LOW (3.5)
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.
Published: 2026-04-17T23:48:36.644Z
Updated: 2026-04-20T16:14:19.107Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40340 vulnerable 2026-06-08 08:01:20.192021 libgphoto2 has OOB read in ptp_unpack_OI() in ptp-pack.c via malicious PTP ObjectInfo response
MEDIUM (6.1)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read vulnerability in `ptp_unpack_OI()` in `camlibs/ptp2/ptp-pack.c` (lines 530–563). The function validates `len < PTP_oi_SequenceNumber` (i.e., len < 48) but subsequently accesses offsets 48–56, up to 9 bytes beyond the validated boundary, via the Samsung Galaxy 64-bit objectsize detection heuristic. Commit 7c7f515bc88c3d0c4098ac965d313518e0ccbe33 fixes the issue.
Published: 2026-04-17T23:45:17.467Z
Updated: 2026-04-20T13:36:05.149Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40339 vulnerable 2026-06-08 08:01:20.191754 libgphoto2 has OOB read in ptp_unpack_Sony_DPD() FormFlag parsing in ptp-pack.c
MEDIUM (5.2)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in `ptp_unpack_Sony_DPD()` in `camlibs/ptp2/ptp-pack.c` (line 842). The function reads the FormFlag byte via `dtoh8o(data, *poffset)` without a prior bounds check. The standard `ptp_unpack_DPD()` at lines 686–687 correctly validates `*offset + sizeof(uint8_t) > dpdlen` before this same read, but the Sony variant omits this check entirely. Commit 09f8a940b1e418b5693f5c11e3016a1ad2cea62d fixes the issue.
Published: 2026-04-17T23:42:32.586Z
Updated: 2026-04-20T14:56:21.979Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40338 vulnerable 2026-06-08 08:01:20.191400 libgphoto2 has OOB read in ptp_unpack_Sony_DPD() enumeration count parsing in ptp-pack.c
MEDIUM (5.2)
libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in the PTP_DPFF_Enumeration case of `ptp_unpack_Sony_DPD()` in `camlibs/ptp2/ptp-pack.c` (line 856). The function reads a 2-byte enumeration count N via `dtoh16o(data, *poffset)` without verifying that 2 bytes remain in the buffer. The standard `ptp_unpack_DPD()` at line 704 has this exact check, confirming the Sony variant omitted it by oversight. Commit 3b9f9696be76ae51dca983d9dd8ce586a2561845 fixes the issue.
Published: 2026-04-17T23:40:10.097Z
Updated: 2026-04-20T16:16:08.585Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40336 vulnerable 2026-06-08 08:01:20.189415 libgphoto2 has memory leak in ptp_unpack_Sony_DPD() secondary enumeration list in ptp-pack.c
LOW (2.4)
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.
Published: 2026-04-17T23:27:42.868Z
Updated: 2026-04-20T16:14:53.071Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40335 vulnerable 2026-06-08 08:01:20.189007 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40334 vulnerable 2026-06-08 08:01:20.188719 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40333 vulnerable 2026-06-08 08:01:20.188284 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.