CVE-2026-138158
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 package | Versions | Reported by |
|---|---|---|
| gphoto libgphoto2 | up to 2.5.34 | CVE List |
All scores
| VulnCheck | 7.0high CVSS:4.0 | 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 |
| VulnCheck | 6.6medium CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-138158 changed 2026-11-30 | CVE Terms of Use |
| NVD | CVE-2026-138158 changed 2026-11-30 | Public domain |