Stack Buffer Overflow in libgphoto2 Affects Camera and USB Devices
CVE-2026-138158
7HIGH
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
