Skip to content

CVE-2026-120451 libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver

HighCVSS 7.0 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

12 packages: 5 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
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
redhat/libgphoto2(Red Hat rhel_els 7) 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

ProductAffected versionsFixed 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 9 more
ProductAffected versionsFixed 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

References