CVE-2026-138158
JSON

7.0high

libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()

Severity
7.0high CVSS:4.0 by VulnCheck
Exploit likelihood
0.44% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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

Product or packageVersionsReported by
gphoto libgphoto2up to 2.5.34CVE List

All scores

VulnCheck7.0high CVSS:4.0CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck6.6medium CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-121

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-138158 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-138158 changed 2026-11-30Public domain