CVE-2026-138158

libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()

High published · updated

7.0
CVSS score out of 10 · CNA (VulnCheck)

Description

libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
libgphoto2 gphoto ≤2.5.34— CVE.org

References