libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
- State
- Published
- Severity
- 5.2 Medium
- Published
- Nov 2, 2026
- Updated
- Nov 2, 2026
- Reserved
- Nov 2, 2026
Description
libgphoto2 through 2.5.34 contains a heap out-of-bounds read and write vulnerability in jl2005bcd_decompress() that allows malicious USB cameras to corrupt heap memory via oversized thumbnail processing. Attackers can supply small allocation-table values and a thumbnail header byte so in-place byte-swapping exceeds the buffer by about 30 KB, leaking heap contents in preview images.
| Product | Versions |
|---|---|
| libgphoto2 gPhoto | 2.5.34 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.2 Medium | VulnCheck | |
| 3.1 | 5.4 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/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfbPatch
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c#L127-L130Technical Details
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflowTechnical Details
- VulnCheck Advisory: libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail ConversionThird-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.