AZL-116353: CVE-2026-138158 affecting package libgphoto2 2.5.31-1

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
azure-linux/libgphoto2<=2.5.31-1

Event History

Nov 28, 2026
Advisory Published
via OSV·03:17 AM
Data Sourced
via OSV·03:17 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which systems are realistically exposed to exploitation?

Systems using libgphoto2 with a Sierra-protocol camera or USB device are exposed when they interact with an untrusted or malicious device. The vulnerable path is reached while listing files on that device.

2

What must an attacker control to trigger the issue?

An attacker needs to provide or control a Sierra-protocol camera or USB device that returns an oversized response for the file-name register. The oversized packet can overwrite stack memory by up to 32 KB past the affected buffers.

3

Which libgphoto2 versions are affected?

The issue affects libgphoto2 through version 2.5.34. The listed Azure Linux package version, 2.5.31-1, falls within that affected range.

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