CVE-2026-138158
published high CVSS 4.0 · 7.0libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gphoto | — | libgphoto20 through 2.5.34 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.6 | medium | VulnCheck · cna | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gphoto | libgphoto2 | 0 through 2.5.34 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-121 Stack-based Buffer Overflow
References
5- https://github.com/gphoto/libgphoto2
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289
- https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a
- GitHub Security Advisory (GHSA-4f44-frcc-8824) https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824
- VulnCheck Advisory: libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register() https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-stack-buffer-overflow-via-sierra-get-string-register
Provider assertions
2VulnCheck · cna
libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cb1c887e22daf463e0db0c4c6a20f1db827d9a60a7c1fb99298617346719b0f9
- Ingested
- 30 Nov 2026, 18:37:21 UTC
- Source record
- Official CVE record