Findings

CVE-2026-40339

libgphoto2 is a camera access and control library.

Published Apr 18, 2026 · updated Jun 17, 2026

libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in in (line 842). The function reads the FormFlag byte via without a prior bounds check. The standard at lines 686–687 correctly validates before this same read, but the Sony variant omits this check entirely. Commit 09f8a940b1e418b5693f5c11e3016a1ad2cea62d fixes the issue.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Apr 18, 2026 · NIST NVD

    Detected

    libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in in (line 842). The function reads the FormFlag byte via without a prior bounds check. The standard at lines 686–687 correctly validates before this same read, but the Sony variant omits this check entirely. Commit 09f8a940b1e418b5693f5c11e3016a1ad2cea62d fixes the issue.

  2. Jun 17, 2026 · NIST NVD

    Updated

    libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in in (line 842). The function reads the FormFlag byte via without a prior bounds check. The standard at lines 686–687 correctly validates before this same read, but the Sony variant omits this check entirely. Commit 09f8a940b1e418b5693f5c11e3016a1ad2cea62d fixes the issue.

Sources

  • CVE.orgVulnerability recordCVE-2026-40339

    Official CVE identifier

    cve.org
  • NIST NVDVulnerability recordCVE-2026-40339

    libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in in (line 842). The function reads the FormFlag byte via without a prior bounds check. Th

    nvd.nist.gov

References