libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver
- State
- Published
- Severity
- 7.0 High
- Published
- Nov 2, 2026
- Updated
- Nov 6, 2026
- Reserved
- Nov 2, 2026
Description
libgphoto2 through 2.5.34 contains stack-based and heap-based buffer overflow vulnerabilities in jl2005c_init() that allow malicious USB devices to corrupt memory by supplying an unbounded allocation table entry count. Attackers can connect a spoofed Jeilin JL2005B/C/D camera reporting 1022 or more entries to overwrite the saved return address and heap data, potentially achieving 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.8 Medium | VulnCheck |
Weaknesses
- CWE-787 Out-of-bounds Write
References
- https://github.com/gphoto/libgphoto2/issues/1326Issue Tracker
- https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442Patch
- https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825ePatch
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138-L154Technical Details
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflowTechnical Details
- VulnCheck Advisory: libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera DriverThird-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.