Stack Buffer Overflow in libgphoto2 Affects Camera and USB Devices
CVE-2026-138158

7HIGH

Key Information:

Vendor

Gphoto

Vendor
CVE Published:
28 November 2026

What is CVE-2026-138158?

libgphoto2 versions up to 2.5.34 have a stack buffer overflow vulnerability in the sierra_get_string_register() function. This issue arises when a malicious sierra-protocol camera or USB device sends an oversized packet while listing files. The resulting buffer overflow can overwrite stack memory, potentially leading to application crashes or remote code execution. It is imperative for users to update to the latest version to mitigate these risks.

Affected Version(s)

libgphoto2 0 <= 2.5.34

References

CVSS V4

Score:
7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Physical
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Deus Rex
.