Skip to content
OpenAdvisories
Medium · 6.8 CVE-2026-120451 EUVD-2026-115211GHSA-7rfg-j54g-6xm2

libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver

Published Nov 2, 2026 · Updated Nov 6, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 libgphoto2 No fix yet —
Debian 13 libgphoto2 No fix yet —
Debian 12 libgphoto2 No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Azure Linux 3 libgphoto2 No fix yet —

Advisories 1

References