CVE-2026-138158
libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()
High · 7.0
- CVSS
- 7
- EPSS
- —
- Published
- 2026-11-28
- Age
- 12h old
- Modified
- 2026-11-28
- Product
- gphoto libgphoto2
- Aliases
- GHSA-4f44-frcc-8824
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
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.
Sources
- NVD · first seen 11h ago · NVD terms of use
- OSV · first seen 10h ago · CC-BY 4.0
- CVE List · first seen 11h ago · CVE Terms of Use
References
- https://github.com/gphoto/libgphoto2/security/advisories/GHSA-4f44-frcc-8824 vendor-advisory
- https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a patch
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289 technical-description
- https://github.com/gphoto/libgphoto2 product
- https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-stack-buffer-overflow-via-sierra-get-string-register third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138158.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-138158 advisory