CVE-2026-138158: libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()

Published Nov 28, 2026
·
Updated

libgphoto2 through 2.5.34 contains a stack buffer overflow in sierragetstringregister() 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 Software

1 affected component
gPhoto libgphoto2<=2.5.34

Event History

Nov 28, 2026
CVE Published
via MITRE·02:21 AM
Data Sourced
via MITRE·02:21 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using libgphoto2 through 2.5.34 are exposed when they interact with a Sierra-protocol camera or USB device and list files from that device.

2

What does an attacker need to exploit the vulnerability?

An attacker needs to provide a malicious Sierra-protocol camera or USB device that returns an oversized response for the file-name register during file listing. The supplied vector indicates physical access and user interaction are required, while no privileges are required.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203