CVE-2026-138158 - libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()
Vulnerability · Reported by NVD · · CWE-121
- Severity
- High Risk score 70/100
- CVSS
- 7.0 v4.0 · from NVD
- Exploit chance (EPSS)
- 0.44% Higher than 30% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
An attacker can exploit this vulnerability with physical access to the device, without any login. Attack complexity is low, so no special conditions are needed.
Is it being exploited?
The EPSS model estimates a 0.44% chance this CVE will be exploited in the next 30 days, which is low and higher than 30% of all published CVEs.
Patch priority and what to do
Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S
Tags
CVE-2026-138158
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-138158 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.