CVE-2026-138158 PUBLISHED

libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()

Assigner: VulnCheck
Reserved: 28.11.2026 Published: 28.11.2026 Updated: 28.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 7

Product Status

Vendor gphoto
Product libgphoto2
Versions Default: unaffected
  • affected from 0 to 2.5.34 (incl.)

Credits

  • Deus Rex finder

References

Problem Types

  • Stack-based Buffer Overflow CWE