Findings

CVE-2026-40335

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 (lines 622–629). The UINT128 and INT128 cases advance without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches 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 (lines 622–629). The UINT128 and INT128 cases advance without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the iss

  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 (lines 622–629). The UINT128 and INT128 cases advance without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the iss

Sources

  • CVE.orgVulnerability recordCVE-2026-40335

    Official CVE identifier

    cve.org
  • NIST NVDVulnerability recordCVE-2026-40335

    libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in in (lines 622–629). The UINT128 and INT128 cases advance without verifying that 16 bytes remain in the

    nvd.nist.gov

References