CVE-2026-120452 libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
MediumCVSS 5.2
EPSS 0.18%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
12 packages: 5 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux libgphoto2(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| debian/libgphoto2(Debian 12) | = 2.5.30-1; = 2.5.31-1; = 2.5.31-2; = 2.5.31-2.1 +8 more | No fix listed | No fix yet |
| debian/libgphoto2(Debian 13) | = 2.5.31-4; = 2.5.32-1; = 2.5.33-1; = 2.5.34-1 +2 more | No fix listed | No fix yet |
| debian/libgphoto2(Debian 14) | = 2.5.31-4; = 2.5.32-1; = 2.5.33-1; = 2.5.34-1 +2 more | No fix listed | No fix yet |
| redhat/libgphoto2(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/libgphoto2(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/libgphoto2(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| gphoto libgphoto2 | <= 2.5.34 | after 2.5.34 | Fixed |
| ubuntu/libgphoto2(Ubuntu 22.04) | < 2.5.27-1ubuntu0.2 | 2.5.27-1ubuntu0.2 | Fixed |
| ubuntu/libgphoto2(Ubuntu 24.04) | < 2.5.31-2.1ubuntu1.2 | 2.5.31-2.1ubuntu1.2 | Fixed |
| ubuntu/libgphoto2(Ubuntu 26.04) | < 2.5.33-1ubuntu1.2 | 2.5.33-1ubuntu1.2 | Fixed |
| ubuntu/libgphoto2(Ubuntu 26.10) | < 2.5.33-1ubuntu2.1 | 2.5.33-1ubuntu2.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/libgphoto2(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/libgphoto2(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/libgphoto2(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/libgphoto2(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/libgphoto2(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| gphoto libgphoto2 | <= 2.5.34 | No fix listed |
| debian/libgphoto2(Debian:12) | All versions | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.30-1 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.31-1 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.31-2 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.31-2.1 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.31-2.1~exp1 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.31-3 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.31-4 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.32-1 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.33-1 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.34-1 | No fix listed |
| debian/libgphoto2(Debian:12) | = 2.5.34-2 | No fix listed |
| debian/libgphoto2(Debian:13) | All versions | No fix listed |
| debian/libgphoto2(Debian:13) | = 2.5.31-4 | No fix listed |
| debian/libgphoto2(Debian:13) | = 2.5.32-1 | No fix listed |
| debian/libgphoto2(Debian:13) | = 2.5.33-1 | No fix listed |
| debian/libgphoto2(Debian:13) | = 2.5.34-1 | No fix listed |
| debian/libgphoto2(Debian:13) | = 2.5.34-2 | No fix listed |
| debian/libgphoto2(Debian:14) | All versions | No fix listed |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libgphoto2(Debian:14) | = 2.5.31-4 | No fix listed |
| debian/libgphoto2(Debian:14) | = 2.5.32-1 | No fix listed |
| debian/libgphoto2(Debian:14) | = 2.5.33-1 | No fix listed |
| debian/libgphoto2(Debian:14) | = 2.5.34-1 | No fix listed |
| debian/libgphoto2(Debian:14) | = 2.5.34-2 | No fix listed |
| ubuntu/libgphoto2(Ubuntu:22.04) | < 2.5.27-1ubuntu0.2 | 2.5.27-1ubuntu0.2 |
| ubuntu/libgphoto2(Ubuntu:24.04) | < 2.5.31-2.1ubuntu1.2 | 2.5.31-2.1ubuntu1.2 |
| ubuntu/libgphoto2(Ubuntu:26.04) | < 2.5.33-1ubuntu1.2 | 2.5.33-1ubuntu1.2 |
| ubuntu/libgphoto2(Ubuntu:26.10) | < 2.5.33-1ubuntu2.1 | 2.5.33-1ubuntu2.1 |
| azure linux libgphoto2(Azure Linux:4.0) | All versions | No fix listed |
References
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2565320 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com technical-description
- github.com patch
- github.com patch
- github.com issue-tracking
- hackmd.io technical-description
- VulnCheck Advisory: libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion third-party-advisory
- Debian Security Tracker CVE-2026-120452 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- USN-9017-1 vendor-advisory
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-115212 third-party-advisory