Medium severity6.6NVD Advisory· Published Nov 28, 2026
CVE-2026-138158
CVE-2026-138158
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
1- Range: <=2.5.34
Patches
Vulnerability mechanics
References
4- github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.cnvd
- github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3anvd
- github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824nvd
- www.vulncheck.com/advisories/libgphoto2-through-2.5.34-stack-buffer-overflow-via-sierra-get-string-registernvd
News mentions
0No linked articles in our index yet.