{"id":"CVE-2026-40335","sourceIdentifier":"security-advisories@github.com","published":"2026-04-18T00:16:37.390","lastModified":"2026-10-25T23:10:00.167","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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_DPV()` in `camlibs/ptp2/ptp-pack.c` (lines 622–629). The UINT128 and INT128 cases advance `*offset += 16` without verifying that 16 bytes remain in the buffer. The entry check at line 609 only guarantees `*offset < total` (at least 1 byte available), leaving up to 15 bytes unvalidated. Commit 433bde9888d70aa726e32744cd751d7dbe94379a patches the issue."},{"lang":"es","value":"libgphoto2 es una biblioteca de acceso y control de cámaras. Las versiones hasta la 2.5.33 inclusive tienen una lectura fuera de límites en ’ptp_unpack_DPV()’ en ’camlibs/ptp2/ptp-pack.c’ (líneas 622-629). Los casos UINT128 e INT128 avanzan ’offset += 16’ sin verificar que queden 16 bytes en el búfer. La verificación de entrada en la línea 609 solo garantiza ’offset < total’ (al menos 1 byte disponible), dejando hasta 15 bytes sin validar. El commit 433bde9888d70aa726e32744cd751d7dbe94379a corrige el problema."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"gphoto","product":"libgphoto2","versions":[{"version":"<= 2.5.33","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","baseScore":5.2,"baseSeverity":"MEDIUM","attackVector":"PHYSICAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"LOW"},"exploitabilityScore":0.9,"impactScore":4.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-04-20T13:28:20.070883Z","id":"CVE-2026-40335","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-125"}]}],"references":[{"url":"https://github.com/gphoto/libgphoto2/commit/433bde9888d70aa726e32744cd751d7dbe94379a","source":"security-advisories@github.com"},{"url":"https://github.com/gphoto/libgphoto2/security/advisories/GHSA-g4g5-c2x9-cqfj","source":"security-advisories@github.com"}]}