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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gPhoto | libgphoto2 | ≤ 2.5.34 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libgphoto2 | No fix yet | — |
| Debian 13 | libgphoto2 | No fix yet | — |
| Debian 12 | libgphoto2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libgphoto2 | 2.5.33-1ubuntu2.1 | USN-9017-1 |
| Ubuntu 26.04 LTS | libgphoto2 | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu 24.04 LTS | libgphoto2 | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu 22.04 LTS | libgphoto2 | 2.5.27-1ubuntu0.2 | USN-9017-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | libgphoto2 | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu Pro 18.04 LTS | libgphoto2 | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu Pro 16.04 LTS | libgphoto2 | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu Pro 14.04 LTS | libgphoto2 | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libgphoto2 | No fix yet | — |
Advisories 1
- USN-9017-1 libgphoto2 vulnerabilities Ubuntu Security Notices (USN) · Nov 11, 2026
References
- https://github.com/gphoto/libgphoto2/issues/1326 issue-tracking
- https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442 patch
- https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb patch
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c#L127-L130 technical-description
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow technical-description
- VulnCheck Advisory: libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion third-party-advisory