libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()
- State
- Published
- Severity
- 7.0 High
- Published
- Nov 28, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 28, 2026
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.
| Product | Versions |
|---|---|
| libgphoto2 gphoto | 2.5.34 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.0 High | VulnCheck | |
| 3.1 | 6.6 Medium | VulnCheck |
Weaknesses
- CWE-121 Stack-based Buffer Overflow
References
- GitHub Security Advisory (GHSA-4f44-frcc-8824)Vendor Advisory
- https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3aPatch
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289Technical Details
- https://github.com/gphoto/libgphoto2Product Page
- VulnCheck Advisory: libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.